Update README.md

* Change position of 'Install' section.
* Add --save-dev to install script
master
Kenny John Jacob 2016-11-17 21:00:53 +05:30 committed by GitHub
parent 6751466773
commit 981814a100
1 changed files with 6 additions and 6 deletions

View File

@ -2,6 +2,12 @@
Adds CSS to the DOM by injecting a `<style>` tag
## Install
```
npm install style-loader --save-dev
```
## Usage
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
@ -74,12 +80,6 @@ So the recommended configuration for webpack is:
**Note** about source maps support and assets referenced with `url`: when style loader is used with ?sourceMap option, the CSS modules will be generated as `Blob`s, so relative paths don't work (they would be relative to `chrome:blob` or `chrome:devtools`). In order for assets to maintain correct paths setting `output.publicPath` property of webpack configuration must be set, so that absolute paths are generated.
## Install
```
npm install style-loader
```
## License
MIT (http://www.opensource.org/licenses/mit-license.php)