File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -8,21 +8,26 @@ Just like [optimize-css-assets-webpack-plugin](http://github.com/NMFR/optimize-c
88## Installation:
99
1010Using 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
1819const OptimizeCssnanoPlugin = require (' @intervolga/optimize-cssnano-plugin' );
20+
1921module .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+ ```
You can’t perform that action at this time.
0 commit comments