From 4427b73629713b45051998f2dd88796368dbd196 Mon Sep 17 00:00:00 2001 From: Philipp Rudloff Date: Sat, 21 Jul 2018 08:14:53 +0200 Subject: [PATCH] Fix configuration indentation problems --- README.md | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index da78735..7abc497 100644 --- a/README.md +++ b/README.md @@ -8,21 +8,26 @@ Just like [optimize-css-assets-webpack-plugin](http://github.com/NMFR/optimize-c ## Installation: Using npm: + ```shell -$ npm install --save-dev @intervolga/optimize-cssnano-plugin +npm install --save-dev @intervolga/optimize-cssnano-plugin ``` ## Configuration: -``` javascript +```javascript const OptimizeCssnanoPlugin = require('@intervolga/optimize-cssnano-plugin'); + module.exports = { - module: { - loaders: [ - { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") } - ] - }, - plugins: [ + module: { + loaders: [ + { + test: /\.css$/, + loader: ExtractTextPlugin.extract("style-loader", "css-loader") + } + ] + }, + plugins: [ new ExtractTextPlugin("styles.css"), new OptimizeCssnanoPlugin({ @@ -35,6 +40,6 @@ module.exports = { }], }, }), - ] + ] } -``` \ No newline at end of file +```