2012-04-07 05:06:57 +04:00
|
|
|
# style loader for webpack
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
``` javascript
|
2012-07-17 04:11:39 +04:00
|
|
|
require("style!raw!./file.css");
|
2012-04-07 05:06:57 +04:00
|
|
|
// => add rules in file.css to document
|
|
|
|
```
|
|
|
|
|
2012-11-07 13:23:19 +04:00
|
|
|
It's recommended to combine it with the [`css`](https://github.com/webpack/css-loader) loader: `require("style!css!./file.css")`.
|
2012-07-17 04:11:39 +04:00
|
|
|
|
2013-03-26 14:51:42 +04:00
|
|
|
It also possible to add a URL instead of a css string:
|
|
|
|
|
|
|
|
``` javascript
|
|
|
|
require("style/url!file!./file.css");
|
|
|
|
// => add a <link rel="stlyesheet"> to file.css to document
|
|
|
|
```
|
|
|
|
|
2012-04-07 05:06:57 +04:00
|
|
|
## License
|
|
|
|
|
|
|
|
MIT (http://www.opensource.org/licenses/mit-license.php)
|