diff --git a/webpack.config.js b/webpack.config.js index 07a0e17..85167a4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -50,4 +50,5 @@ module.exports = merge([ paths: glob.sync(`${PATHS.app}/**/*.js`, { nodir: true }), }), utils.extractVendorCode(), + utils.uglifyJS(), ]); diff --git a/webpack.utils.js b/webpack.utils.js index 40380df..2d14fde 100644 --- a/webpack.utils.js +++ b/webpack.utils.js @@ -55,3 +55,9 @@ exports.extractVendorCode = () => ({ ], }); +exports.uglifyJS = () => ({ + plugins: [ + new webpack.optimize.UglifyJsPlugin(), + ], +}); +