frontend: make webpack better

This commit is contained in:
Cadey Ratio 2016-12-18 08:51:15 -08:00
parent 65f3326eaf
commit 0315c0b721
1 changed files with 10 additions and 10 deletions

View File

@ -41,18 +41,18 @@ module.exports = {
}),
new FaviconsWebpackPlugin('../static/img/avatar.png'),
new webpack.optimize.DedupePlugin(),
new webpackUglifyJsPlugin({
cacheFolder: path.resolve(__dirname, 'output/ug'),
debug: false,
minimize: true,
sourceMap: false,
output: {
comments: false
},
compressor: {
new webpack.optimize.UglifyJsPlugin({
beautify: false,
mangle: true,
comments: false,
compress: {
dead_code: true,
loops: true,
if_return: true,
unused: true,
warnings: false
}
}),
})
],
resolveLoader: {
modules: [