1 Star 4 Fork 0

dylan66ty/vue-h5-tpl-vant

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
babel.config.js 476 Bytes
一键复制 编辑 原始数据 按行查看 历史
dylan66ty 提交于 2021-02-23 09:27 . init
// 获取 VUE_APP_ENV 非 NODE_ENV,测试环境依然 console
const IS_PROD = ['production', 'prod'].includes(process.env.VUE_APP_ENV)
const plugins = [
[
'import',
{
libraryName: 'vant',
libraryDirectory: 'es',
style: true
},
'vant'
]
]
// 去除 console.log
if (IS_PROD) {
plugins.push('transform-remove-console')
}
module.exports = {
presets: [['@vue/cli-plugin-babel/preset', { useBuiltIns: 'usage', corejs: 3 }]],
plugins
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dylan66ty/vue-h5-tpl-vant.git
git@gitee.com:dylan66ty/vue-h5-tpl-vant.git
dylan66ty
vue-h5-tpl-vant
vue-h5-tpl-vant
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385