Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
azhang opened this issue Feb 19, 2014 · 0 comments
Open

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

azhang opened this issue Feb 19, 2014 · 0 comments

Comments

@azhang
Copy link

azhang commented Feb 19, 2014

// 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

azhang pushed a commit to azhang/builder.js that referenced this issue Feb 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant