Skip to content

Commit 981814a

Browse files
Update README.md
* Change position of 'Install' section. * Add --save-dev to install script
1 parent 6751466 commit 981814a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Adds CSS to the DOM by injecting a `<style>` tag
44

5+
## Install
6+
7+
```
8+
npm install style-loader --save-dev
9+
```
10+
511
## Usage
612

713
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
@@ -74,12 +80,6 @@ So the recommended configuration for webpack is:
7480

7581
**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.
7682

77-
## Install
78-
79-
```
80-
npm install style-loader
81-
```
82-
8383
## License
8484

8585
MIT (http://www.opensource.org/licenses/mit-license.php)

0 commit comments

Comments
 (0)