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
8
8
## Installation:
9
9
10
10
Using npm:
11
+
11
12
``` shell
12
- $ npm install --save-dev @intervolga/optimize-cssnano-plugin
13
+ npm install --save-dev @intervolga/optimize-cssnano-plugin
13
14
```
14
15
15
16
## Configuration:
16
17
17
- ``` javascript
18
+ ``` javascript
18
19
const OptimizeCssnanoPlugin = require (' @intervolga/optimize-cssnano-plugin' );
20
+
19
21
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: [
26
31
new ExtractTextPlugin (" styles.css" ),
27
32
28
33
new OptimizeCssnanoPlugin ({
@@ -35,6 +40,6 @@ module.exports = {
35
40
}],
36
41
},
37
42
}),
38
- ]
43
+ ]
39
44
}
40
- ```
45
+ ```
You can’t perform that action at this time.
0 commit comments