css-loader
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -34,2 +34,9 @@ /* | ||
var match = /^%CSSURL\[%(.*?)%\]CSSURL%$/.exec(str); | ||
var idx = match[1].indexOf("?"); | ||
if(idx < 0) idx = match[1].indexOf("#"); | ||
if(idx >= 0) { | ||
// in cases like url('webfont.eot?#iefix') | ||
var url = JSON.parse("\"" + match[1].substr(0, idx) + "\""); | ||
return "\"+require(" + JSON.stringify(urlToRequire(url)) + ")+\"" + match[1].substr(idx); | ||
} | ||
var url = JSON.parse("\"" + match[1] + "\""); | ||
@@ -36,0 +43,0 @@ return "\"+require(" + JSON.stringify(urlToRequire(url)) + ")+\""; |
{ | ||
"name": "css-loader", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "css loader module for webpack", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5303
125