You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
756 B
16 lines
756 B
# 线上环境项目打包路径
|
|
VITE_PUBLIC_PATH = /
|
|
|
|
# 线上环境路由历史模式
|
|
VITE_ROUTER_HISTORY = "hash"
|
|
|
|
# 是否为打包后的文件提供传统浏览器兼容性支持 支持 true 不支持 false
|
|
VITE_LEGACY = false
|
|
|
|
# 是否在打包时使用cdn替换本地库 替换 true 不替换 false
|
|
VITE_CDN = false
|
|
|
|
# 是否启用gzip压缩或brotli压缩(分两种情况,删除原始文件和不删除原始文件)
|
|
# 压缩时不删除原始文件的配置:gzip、brotli、both(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认)
|
|
# 压缩时删除原始文件的配置:gzip-clear、brotli-clear、both-clear(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认)
|
|
VITE_COMPRESSION = "none"
|