Skip to content

Commit 9a149a5

Browse files
committed
added query parameter url=false
webpack-contrib#44
1 parent d159860 commit 9a149a5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/loader.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ module.exports = function(content, map) {
4444
result.push("exports.i(require(" + loaderUtils.stringifyRequest(this, importUrl) + "), " + JSON.stringify(imp.mediaQuery) + ");");
4545
}
4646
}, this);
47-
stuff.urls.forEach(function(url, idx) {
48-
replacer.replace(url.start, url.length, "__CSSLOADERURL_" + idx + "__");
49-
});
47+
if (query.url !== 'false') {
48+
stuff.urls.forEach(function(url, idx) {
49+
replacer.replace(url.start, url.length, "__CSSLOADERURL_" + idx + "__");
50+
});
51+
}
5052
var placeholders = {};
5153
stuff.placeholders.forEach(function(placeholder) {
5254
var hash = require("crypto").createHash("md5");

0 commit comments

Comments
 (0)