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

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