Skip to content

Commit d97065d

Browse files
committed
added disabling of url rewriting
1 parent 3d9764e commit d97065d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/processCss.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,13 @@ module.exports = function processCss(inputSource, inputMap, options, callback) {
145145
localByDefault({
146146
mode: options.mode,
147147
rewriteUrl: function(global, url) {
148-
if(!loaderUtils.isUrlRequest(url, root)) {
149-
return url;
150-
}
151-
if(global) {
152-
return loaderUtils.urlToRequest(url, root);
148+
if(parserOptions.url){
149+
if(!loaderUtils.isUrlRequest(url, root)) {
150+
return url;
151+
}
152+
if(global) {
153+
return loaderUtils.urlToRequest(url, root);
154+
}
153155
}
154156
return url;
155157
}

0 commit comments

Comments
 (0)