yylAdminWeb/babel.config.js

15 lines
465 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// https://www.babeljs.cn/
module.exports = {
presets: [
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
'@vue/cli-plugin-babel/preset'
],
'env': {
'development': {
// babel plugin动态导入节点插件只做一件事将所有import转换为require
// 当你有大量页面时,这个插件可以显著提高热更新的速度。
'plugins': ['dynamic-import-node']
}
}
}