forked from cadey/xesite
frontend: make webpack better
This commit is contained in:
parent
65f3326eaf
commit
0315c0b721
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue