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 FaviconsWebpackPlugin('../static/img/avatar.png'),
|
||||||
new webpack.optimize.DedupePlugin(),
|
new webpack.optimize.DedupePlugin(),
|
||||||
new webpackUglifyJsPlugin({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
cacheFolder: path.resolve(__dirname, 'output/ug'),
|
beautify: false,
|
||||||
debug: false,
|
mangle: true,
|
||||||
minimize: true,
|
comments: false,
|
||||||
sourceMap: false,
|
compress: {
|
||||||
output: {
|
dead_code: true,
|
||||||
comments: false
|
loops: true,
|
||||||
},
|
if_return: true,
|
||||||
compressor: {
|
unused: true,
|
||||||
warnings: false
|
warnings: false
|
||||||
}
|
}
|
||||||
}),
|
})
|
||||||
],
|
],
|
||||||
resolveLoader: {
|
resolveLoader: {
|
||||||
modules: [
|
modules: [
|
||||||
|
|
Loading…
Reference in New Issue