1 Star 0 Fork 248

北群 / RuoYi-Antdv

forked from fuzui / RuoYi-Antdv 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
babel.config.js 567 Bytes
一键复制 编辑 原始数据 按行查看 历史
fuzui 提交于 2021-01-01 17:44 . :tada:RuoYi-Antdv init
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
const plugins = []
if (IS_PROD) {
plugins.push('transform-remove-console')
}
// lazy load ant-design-vue
// if your use import on Demand, Use this code
plugins.push(['import', {
'libraryName': 'ant-design-vue',
'libraryDirectory': 'es',
'style': true // `style: true` 会加载 less 文件
}])
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
[
'@babel/preset-env',
{
'useBuiltIns': 'entry',
'corejs': 3
}
]
],
plugins
}
1
https://gitee.com/ley621621/RuoYi-Antdv.git
git@gitee.com:ley621621/RuoYi-Antdv.git
ley621621
RuoYi-Antdv
RuoYi-Antdv
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891