Updated webpack conf which decreased the size of dist by mre than 30%

This commit is contained in:
euvl
2017-10-25 15:31:53 +01:00
parent bffbab21d2
commit 7dacd010ec
3 changed files with 18 additions and 61 deletions

View File

@@ -25,8 +25,13 @@ module.exports = {
}
]
},
devtool: '#source-map',
// devtool: '#source-map',
plugins: [
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production'),
},
}),
new UglifyJSPlugin({
mangle: false,
beautify: true

36
dist/index.js vendored

File diff suppressed because one or more lines are too long

36
dist/ssr.index.js vendored

File diff suppressed because one or more lines are too long