aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2016-12-18 08:51:15 -0800
committerChristine Dodrill <me@christine.website>2016-12-18 08:51:15 -0800
commit0315c0b72158a2ae3cc827c6922a4dbcbef3a002 (patch)
tree991733a3d5b2b69cdc770cccc42834f9b3eec695
parent65f3326eafbb866c185763c0818318aa815503a0 (diff)
downloadxesite-0315c0b72158a2ae3cc827c6922a4dbcbef3a002.tar.xz
xesite-0315c0b72158a2ae3cc827c6922a4dbcbef3a002.zip
frontend: make webpack better
-rw-r--r--frontend/webpack.production.config.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/frontend/webpack.production.config.js b/frontend/webpack.production.config.js
index ac58a43..4383a1e 100644
--- a/frontend/webpack.production.config.js
+++ b/frontend/webpack.production.config.js
@@ -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: [