Skip to content

Commit

Permalink
Fix code formatting in the example (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin authored and NMFR committed Sep 18, 2017
1 parent 52c0699 commit 72f58a3
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,24 @@ The plugin can receive the following options (all of them are optional):
``` javascript
var OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
module.exports = {
module: {
loaders: [
{ test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") }
]
},
plugins: [
new ExtractTextPlugin("styles.css"),
module: {
loaders: [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader')
}
]
},
plugins: [
new ExtractTextPlugin('styles.css'),
new OptimizeCssAssetsPlugin({
assetNameRegExp: /\.optimize\.css$/g,
cssProcessor: require('cssnano'),
cssProcessorOptions: { discardComments: {removeAll: true } },
cssProcessorOptions: { discardComments: { removeAll: true } },
canPrint: true
})
]
}
]
};
```

## License
Expand Down

0 comments on commit 72f58a3

Please sign in to comment.