vue.config.js配置 打包去掉console.log
configureWebpack: config =>{config.optimization.minimizer[0].options.terserOptions.compress.drop_console = process.env.NODE_ENV === 'production'// provide the app's title in webpack's name field, s
·
configureWebpack: config => {
config.optimization.minimizer[0].options.terserOptions.compress.drop_console = process.env.NODE_ENV === 'production'
// provide the app's title in webpack's name field, so that
config.externals = {
name: name,
resolve: {
alias: {
'@': resolve('src')
}
}
}
}
更多推荐
已为社区贡献9条内容
所有评论(0)