diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index d9f99f6..30b78ae 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -35,7 +35,9 @@ const webpackConfig = merge(baseWebpackConfig, { new UglifyJsPlugin({ uglifyOptions: { compress: { - warnings: false + warnings: false, + drop_debugger: true, + drop_console: true, } }, sourceMap: config.build.productionSourceMap, @@ -46,7 +48,7 @@ const webpackConfig = merge(baseWebpackConfig, { filename: utils.assetsPath('css/[name].[contenthash].css'), // Setting the following option to `false` will not extract CSS from codesplit chunks. // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack. - // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, + // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110 allChunks: true, }),