gulp-css-url-adjuster icon indicating copy to clipboard operation
gulp-css-url-adjuster copied to clipboard

Absolute Urls

Open ischyrus opened this issue 10 years ago • 2 comments

When there is an absolute url in the CSS it is altered without anything set to touch it.

.pipe(urlAdjuster({
    replace: ['../fonts/bootstrap', './css-lib/Bootstrap/3.3.1/assets/fonts/bootstrap']
}))

That will turn

background-image: url('http://www.google.com/someimage");

into

background-image: url('http:/www.google.com/someimage");

Which browsers then consider to be a relative url.

ischyrus avatar Jan 27 '15 17:01 ischyrus

I have the same problem

ezequieltejada avatar Sep 15 '15 20:09 ezequieltejada

As this package will replace all double slash with single slash, it will cause this problem. As this package is inactive for two years, I forked it and add some features. Check here: gulp-ex-css-url-adjuster

BigMurry avatar Mar 02 '17 08:03 BigMurry