diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 72b50fb..6d139c6 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -51,7 +51,9 @@ const webpackConfig = merge(baseWebpackConfig, { new UglifyJsPlugin({ uglifyOptions: { compress: { - warnings: false + warnings: false, + drop_console: true, // 移除console + pure_funcs: ['console.log','console.info'] // 移除console.log } }, sourceMap: config.build.productionSourceMap, diff --git a/src/components/CommonFooter.vue b/src/components/CommonFooter.vue index 7a7339e..20320a5 100644 --- a/src/components/CommonFooter.vue +++ b/src/components/CommonFooter.vue @@ -1,10 +1,10 @@