2022-04-20 23:15:04 +08:00
|
|
|
|
# 预发布也需要生产环境的行为
|
|
|
|
|
# https://cn.vitejs.dev/guide/env-and-mode.html#modes
|
2023-05-23 14:39:36 +08:00
|
|
|
|
# NODE_ENV = development
|
2022-04-20 23:15:04 +08:00
|
|
|
|
|
2023-07-18 12:17:39 +08:00
|
|
|
|
VITE_PUBLIC_PATH = /
|
2022-04-20 23:15:04 +08:00
|
|
|
|
|
2022-11-17 15:44:11 +08:00
|
|
|
|
# 预发布环境路由历史模式(Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数")
|
2022-04-20 23:15:04 +08:00
|
|
|
|
VITE_ROUTER_HISTORY = "hash"
|
|
|
|
|
|
2022-10-26 19:44:44 +08:00
|
|
|
|
# 是否在打包时使用cdn替换本地库 替换 true 不替换 false
|
2022-11-10 11:47:07 +08:00
|
|
|
|
VITE_CDN = true
|
2022-10-27 02:35:56 +08:00
|
|
|
|
|
|
|
|
|
# 是否启用gzip压缩或brotli压缩(分两种情况,删除原始文件和不删除原始文件)
|
|
|
|
|
# 压缩时不删除原始文件的配置:gzip、brotli、both(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认)
|
|
|
|
|
# 压缩时删除原始文件的配置:gzip-clear、brotli-clear、both-clear(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认)
|
2023-05-03 18:14:03 +08:00
|
|
|
|
VITE_COMPRESSION = "none"
|