File tree 1 file changed +13
-10
lines changed
1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -30,21 +30,24 @@ The plugin can receive the following options (all of them are optional):
30
30
``` javascript
31
31
var OptimizeCssAssetsPlugin = require (' optimize-css-assets-webpack-plugin' );
32
32
module .exports = {
33
- module: {
34
- loaders: [
35
- { test: / \. css$ / , loader: ExtractTextPlugin .extract (" style-loader" , " css-loader" ) }
36
- ]
37
- },
38
- plugins: [
39
- new ExtractTextPlugin (" styles.css" ),
33
+ module: {
34
+ loaders: [
35
+ {
36
+ test: / \. css$ / ,
37
+ loader: ExtractTextPlugin .extract (' style-loader' , ' css-loader' )
38
+ }
39
+ ]
40
+ },
41
+ plugins: [
42
+ new ExtractTextPlugin (' styles.css' ),
40
43
new OptimizeCssAssetsPlugin ({
41
44
assetNameRegExp: / \. optimize\. css$ / g ,
42
45
cssProcessor: require (' cssnano' ),
43
- cssProcessorOptions: { discardComments: {removeAll: true } },
46
+ cssProcessorOptions: { discardComments: { removeAll: true } },
44
47
canPrint: true
45
48
})
46
- ]
47
- }
49
+ ]
50
+ };
48
51
```
49
52
50
53
## License
You can’t perform that action at this time.
0 commit comments