-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.env.development
More file actions
31 lines (25 loc) · 1.05 KB
/
.env.development
File metadata and controls
31 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# dev环境变量
# import() => require(), 提高热更新速度, https://github.com/vuejs/vue-cli/blob/master/packages/@vue/babel-preset-app/index.js#L134
VUE_CLI_BABEL_TRANSPILE_MODULES=true
# 服务主机,默认0.0.0.0(优先ip)
# DEV_SERVER_HOST=0.0.0.0
# DEV_SERVER_NETWORK=IPv6
# 服务端口,默认9000
# DEV_SERVER_PORT=9000
# 默认打开页 默认/
# DEV_SERVER_PAGE=/
# 是否使用https (不支持http2) 默认false
# DEV_SERVER_HTTPS=true
# 开发环境sourceMap https://webpack.js.org/configuration/devtool/#devtool 默认eval
# DEV_TOOL=eval
# https://webpack.js.org/configuration/output/#outputecmaversion
# ES_VERSION=2020
# 动态代理字段,数字与PROXY_TARGET对应
# 可指定为: 环境变量字段(比如:PROXY_TARGET)/ip/完整url
PROXY_FIELD=proxy
SEARCH_FIELD=$PROXY_FIELD\d*|_target\d+
# 代理接口服务地址,与 BASE_PATH 对应,比如 BASE_PATH1 对应 PROXY_TARGET1
PROXY_TARGET=https://127.0.0.1:9000/api
# 示例: 使页面可以通过 https://localhost:9000/other 访问
BASE_PATH1=other
PROXY_TARGET1=other.html