gulp-concat-css icon indicating copy to clipboard operation
gulp-concat-css copied to clipboard

URL paths are rewritten

Open jfairley opened this issue 10 years ago • 5 comments
trafficstars

I'm not sure the use case for URL rewriting, but it just bit me in an unfortunate way.

Similar to https://github.com/mariocasciaro/gulp-concat-css/issues/1, I'm also using font-awesome, but the paths that are rewritten as the are in the example (minus the slash direction), mess up my output.

So more specifically...

url('../fonts/font-awesome/*')

becomes

url('font-awesome/fonts/font-awesome/*')

I'm curious of the intended use case. Am I supposed to copy the font-awesome fonts to dist/font-awesome/fonts (i.e. dist/<npm-module>/fonts)? IMO, this seems to add too much knowledge into my minification process.

jfairley avatar May 28 '15 00:05 jfairley

Setting the rebaseUrls option to false is supposed to avoid this, but for me the setting seems to make no difference. URLs are rebased either way.

hughgrigg avatar Jun 13 '15 12:06 hughgrigg

@hughgrigg Could you please create a test case for your problem? The tests we have say that the rebaseUrls option should be working properly

mariocasciaro avatar Jun 25 '15 14:06 mariocasciaro

Having the same issue. rebaseUrls flag doesn't make difference.

When I have in src "[ css/reset.css, ...]" URLs are OK (i.e. rebased), when I have "[ plugins/reset.css, ...]" (i.e. just moved that file to another folder) - URLs are not OK.

Lexa1983 avatar Oct 01 '15 13:10 Lexa1983

I can confirm this behavior (using v 2.3.0) Any news on it?

ZuSe avatar Jul 02 '16 23:07 ZuSe

This still was not touched?

trainoasis avatar Nov 20 '17 13:11 trainoasis