master
Tobias Koppers 2012-09-26 13:38:57 +02:00
parent def30554cd
commit 72062e0238
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ module.exports = function(content) {
this.cacheable && this.cacheable();
this.clearDependencies && this.clearDependencies();
if(this.loaderType != "loader") throw new Error("style-loader do not work as pre or post loader");
var rawCss = this.currentLoaders.slice(this.loaderIndex+1).join("!")
var rawCss = this.currentLoaders.slice(this.loaderIndex+1).join("!") + "!" + this.filenames[0];
if(this.web)
return "require(" + JSON.stringify(path.join(__dirname, "addStyle")) + ")"+
"(require(" + JSON.stringify(rawCss) + "))";

View File

@ -1,6 +1,6 @@
{
"name": "style-loader",
"version": "0.2.0",
"version": "0.2.1",
"author": "Tobias Koppers @sokra",
"description": "style loader module for webpack",
"licenses": [