2020
09-27
09-27
Vue Cli3 打包配置并自动忽略console.log语句的方法
下载插件npmi-Duglifyjs-webpack-plugin在vue.config.js引入使用constUglifyJsPlugin=require('uglifyjs-webpack-plugin')module.exports={configureWebpack:{plugins:[newUglifyJsPlugin({uglifyOptions:{compress:{drop_console:true,},},}),],},devServer:{proxy:{'/xxx':{target:'http://192.168.150.17:8080/',changeOrigin:true,ws:true,p...
继续阅读 >