In Webpack, I have the following plugins:
plugins: [ new ExtractTextPlugin(\'styles.css\'), new webpack.optimize.UglifyJsPlugin({ com
You can use this new syntax which uses the spread operator
plugins: [ new MiniCssExtractPlugin({ filename: '[name].css' }), ...(prod ? [] : [new BundleAnalyzerPlugin()]) ],