File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 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):
3030``` javascript
3131var OptimizeCssAssetsPlugin = require (' optimize-css-assets-webpack-plugin' );
3232module .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' ),
4043 new OptimizeCssAssetsPlugin ({
4144 assetNameRegExp: / \. optimize\. css$ / g ,
4245 cssProcessor: require (' cssnano' ),
43- cssProcessorOptions: { discardComments: {removeAll: true } },
46+ cssProcessorOptions: { discardComments: { removeAll: true } },
4447 canPrint: true
4548 })
46- ]
47- }
49+ ]
50+ };
4851```
4952
5053## License
You can’t perform that action at this time.
0 commit comments