vue-h5-template/.env.development
于博文 700a4e0eff mock-server模拟真实请求,可在F12-Network查看,
新增依赖:"mockjs": "^1.1.0",
删除依赖:"core-js": "^3.6.4",
升级依赖:
"@vue/cli-plugin-babel": "^4.3.1",
"@vue/cli-plugin-eslint": "^4.3.1",
"@vue/cli-service": "^4.3.1",
2020-05-12 17:20:40 +08:00

16 lines
585 B
Plaintext

NODE_ENV='development'
# must start with VUE_APP_
VUE_APP_ENV = 'development'
# base api
VUE_APP_BASE_API = '/dev-api'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
# It only does one thing by converting all import() to require().
# This configuration can significantly increase the speed of hot updates,
# when you have a large number of pages.
# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js
VUE_CLI_BABEL_TRANSPILE_MODULES = true