style-loader
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -7,8 +7,8 @@ /* | ||
module.exports = function(content) { | ||
var options = this; | ||
var result = []; | ||
var loaderSign = this.request.indexOf("!"); | ||
var rawCss = this.request.substr(loaderSign); // including leading "!" | ||
return "require(" + JSON.stringify(path.join(__dirname, "addStyle")) + ")"+ | ||
"(require(" + JSON.stringify(rawCss) + "))"; | ||
if(this.web) | ||
return "require(" + JSON.stringify(path.join(__dirname, "addStyle")) + ")"+ | ||
"(require(" + JSON.stringify(rawCss) + "))"; | ||
return ""; | ||
} |
{ | ||
"name": "style-loader", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "style loader module for webpack", |
1586