1 Star 0 Fork 0

吴少建/租客管理

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 762 Bytes
一键复制 编辑 原始数据 按行查看 历史
Spacks Wu 提交于 2024-01-27 00:11 . init
const ignored = ['**/uni_modules/**/*.md', '**/uni_modules/**/package.json', '**/uni_modules/*/uniCloud/**/*', '**/.git']
module.exports = {
chainWebpack: (config) => {
// 发行或运行时启用了压缩时会生效
config.optimization.minimizer('terser').tap((args) => {
const compress = args[0].terserOptions.compress
// 非 App 平台移除 console 代码(包含所有 console 方法,如 log,debug,info...)
compress.drop_console = true
compress.pure_funcs = [
'__f__', // App 平台 vue 移除日志代码
// 'console.debug' // 可移除指定的 console 方法
]
return args
})
},
configureWebpack() {
return {
watchOptions: {
ignored
},
devServer: {
watchOptions: {
ignored
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/love-yanxi/tenant-management.git
git@gitee.com:love-yanxi/tenant-management.git
love-yanxi
tenant-management
租客管理
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385