Skip to content

rewriteUrls normalizes urls, while copy doesn't. #166

Description

@azhang
// Build styles.
var prefix = "";
builder.use(rewriteUrls(prefix));
builder.use(concat('styles'));

// Build fonts.
builder.use(copy('fonts', "./build/"));

I'm trying to rewriteUrls font urls so that they match what is copied over by copy. In 0.10.x, both the rewriteUrl and the copied directory names are normalized. In 0.12.x, files are copyed such that the top level directories are set as conf.name rather than normalized, while rewriteUrls still rewrites urls such that they are normalized.

Is this by design (I don't see why), or something that needs to be fixed?

edit: What I mean is that with rewriteUrls, I get /aaronz8-font-awesome/fonts/fontawesome-webfont.svg whereas copy will put it in /Font-Awesome/fonts/fontawesome-webfont.svg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions