This commit is contained in:
Pan 2018-11-01 10:41:19 +08:00
parent 51f99770fe
commit da286d4439
3 changed files with 8 additions and 1 deletions

1
.env
View File

@ -1 +0,0 @@
VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -1 +1,8 @@
VUE_APP_BASE_API = '/api'
// With this configuration, vue-cli uses babel-plugin-dynamic-import-node
// It only does one thing by converting all import() to require()
// So that all asynchronous components can be import synchronously using this plugin
// This configuration can significantly increase the speed of hot updates when you have a large number of pages
// https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js
VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -64,6 +64,7 @@
"xlsx": "^0.11.16"
},
"devDependencies": {
"@babel/core": "7.0.0",
"@babel/register": "7.0.0",
"@vue/cli-plugin-babel": "3.0.5",
"@vue/cli-plugin-eslint": "3.0.5",