Skip to content

Commit 72f58a3

Browse files
sapeginNMFR
authored andcommitted
Fix code formatting in the example (NMFR#20)
1 parent 52c0699 commit 72f58a3

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

README.md

+13-10
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,24 @@ The plugin can receive the following options (all of them are optional):
3030
``` javascript
3131
var OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
3232
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'),
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

0 commit comments

Comments
 (0)