Skip to content

Commit c788450

Browse files
authoredMar 16, 2018
fix(lib/processCss): don't check mode for url handling (options.modules) (#698)
1 parent c35d8bd commit c788450

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎lib/processCss.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
5555
}
5656
values.nodes[0].nodes.shift();
5757
var mediaQuery = Tokenizer.stringifyValues(values);
58-
if(loaderUtils.isUrlRequest(url, options.root) && options.mode === "global") {
58+
59+
if(loaderUtils.isUrlRequest(url, options.root)) {
5960
url = loaderUtils.urlToRequest(url, options.root);
6061
}
62+
6163
importItems.push({
6264
url: url,
6365
mediaQuery: mediaQuery

0 commit comments

Comments
 (0)