Skip to content

Commit 123de8b

Browse files
Merge pull request #2 from kleinfreund/patch-1
Fix configuration indentation problems
2 parents d25912b + 4427b73 commit 123de8b

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,26 @@ Just like [optimize-css-assets-webpack-plugin](http://github.com/NMFR/optimize-c
88
## Installation:
99

1010
Using npm:
11+
1112
```shell
12-
$ npm install --save-dev @intervolga/optimize-cssnano-plugin
13+
npm install --save-dev @intervolga/optimize-cssnano-plugin
1314
```
1415

1516
## Configuration:
1617

17-
``` javascript
18+
```javascript
1819
const OptimizeCssnanoPlugin = require('@intervolga/optimize-cssnano-plugin');
20+
1921
module.exports = {
20-
module: {
21-
loaders: [
22-
{ test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") }
23-
]
24-
},
25-
plugins: [
22+
module: {
23+
loaders: [
24+
{
25+
test: /\.css$/,
26+
loader: ExtractTextPlugin.extract("style-loader", "css-loader")
27+
}
28+
]
29+
},
30+
plugins: [
2631
new ExtractTextPlugin("styles.css"),
2732

2833
new OptimizeCssnanoPlugin({
@@ -35,6 +40,6 @@ module.exports = {
3540
}],
3641
},
3742
}),
38-
]
43+
]
3944
}
40-
```
45+
```

0 commit comments

Comments
 (0)