1 Star 0 Fork 0

橙哈哈 / springboot_vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
babel.config.js 495 Bytes
一键复制 编辑 原始数据 按行查看 历史
橙哈哈 提交于 2020-12-21 18:59 . first commit
// 这是项目发布阶段需要用到的 babel 插件
const prodPlugins = []
if (process.env.NODE_ENV === 'production') {
prodPlugins.push('transform-remove-console')
}
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
plugins: [
[
'component',
{
libraryName: 'element-ui',
styleLibraryName: 'theme-chalk'
}
],
// 发布产品时候的插件数组
...prodPlugins,
'@babel/plugin-syntax-dynamic-import'
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/SR_Lesson/springboot_vue.git
git@gitee.com:SR_Lesson/springboot_vue.git
SR_Lesson
springboot_vue
springboot_vue
main

搜索帮助