Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { webpack } = require('@webpack-blocks/webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
exports.basePlugins = [
new HtmlWebpackPlugin({
inject: true,
template: './index.html'
})
]
exports.productionPlugins = [
new webpack.LoaderOptionsPlugin({
minimize: true,
debug: false
}),
// new webpack.optimize.DedupePlugin(), // TODO: Does not work w/ webpack 2 yet... :-/
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
},
output: {
comments: false
},
screwIe8: true,
sourceMap: false
})
]