css-loader
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -20,3 +20,3 @@ /* | ||
} | ||
result.push("require(" + JSON.stringify(__filename) + " + \"!\" + " + JSON.stringify(imp.url) + ")"); | ||
result.push("require(" + JSON.stringify(__filename) + " + \"!\" + " + JSON.stringify(urlToRequire(imp.url)) + ")"); | ||
if(imp.media.length > 0) { | ||
@@ -31,2 +31,8 @@ result.push(JSON.stringify("}")); | ||
function urlToRequire(url) { | ||
if(/^~/.test(url)) | ||
return url.substring(1); | ||
else | ||
return "./"+url; | ||
} | ||
function extractImports(tree) { | ||
@@ -33,0 +39,0 @@ var results = []; |
{ | ||
"name": "css-loader", | ||
"version": "0.1.1", | ||
"version": "0.1.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
2615
69