1 Star 0 Fork 0

Keya Liu/orange-mobile-uniapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.js 453 Bytes
一键复制 编辑 原始数据 按行查看 历史
liujiabin 提交于 2023-11-29 15:53 +08:00 . 1 初始化代码提交
const path = require('path')
module.exports = {
// 发布时删除console
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 = [
'console.log' // 可移除指定的 console 方法
]
return args
})
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/KeyaLiu/orange-mobile-uniapp.git
git@gitee.com:KeyaLiu/orange-mobile-uniapp.git
KeyaLiu
orange-mobile-uniapp
orange-mobile-uniapp
master

搜索帮助