gulp-css-url-adjuster
gulp-css-url-adjuster copied to clipboard
Absolute Urls
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.
I have the same problem
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