style-loader
Advanced tools
Comparing version 0.1.3 to 0.2.0
@@ -0,0 +0,0 @@ /* |
@@ -9,4 +9,4 @@ /* | ||
this.clearDependencies && this.clearDependencies(); | ||
var loaderSign = this.request.indexOf("!"); | ||
var rawCss = this.request.substr(loaderSign); // including leading "!" | ||
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("!") | ||
if(this.web) | ||
@@ -16,2 +16,3 @@ return "require(" + JSON.stringify(path.join(__dirname, "addStyle")) + ")"+ | ||
return ""; | ||
} | ||
} | ||
module.exports.seperable = true; |
{ | ||
"name": "style-loader", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "style loader module for webpack", |
@@ -6,3 +6,3 @@ # style loader for webpack | ||
``` javascript | ||
require("style!./file.css"); | ||
require("style!raw!./file.css"); | ||
// => add rules in file.css to document | ||
@@ -13,4 +13,6 @@ ``` | ||
It's recommended to combine it with the [`css`](https://github.com/sokra/webpack-css-loader) loader: `require("style!css!./file.css")`. | ||
## License | ||
MIT (http://www.opensource.org/licenses/mit-license.php) |
16
3
1766
5
28