2020-10-10 21:28:43 +08:00
|
|
|
|
# Whether to open mock
|
2021-01-24 21:38:55 +08:00
|
|
|
|
VITE_USE_MOCK = true
|
2020-10-10 21:28:43 +08:00
|
|
|
|
|
|
|
|
|
# public path
|
2021-01-11 00:16:44 +08:00
|
|
|
|
VITE_PUBLIC_PATH = /
|
2020-10-10 21:28:43 +08:00
|
|
|
|
|
2020-10-16 22:03:44 +08:00
|
|
|
|
# Delete console
|
|
|
|
|
VITE_DROP_CONSOLE = true
|
|
|
|
|
|
2021-02-22 00:01:03 +08:00
|
|
|
|
# Whether to enable gzip or brotli compression
|
2021-02-13 00:26:41 +08:00
|
|
|
|
# Optional: gzip | brotli | none
|
|
|
|
|
# If you need multiple forms, you can use `,` to separate
|
2021-02-17 22:07:22 +08:00
|
|
|
|
VITE_BUILD_COMPRESS = 'none'
|
2020-10-16 22:03:44 +08:00
|
|
|
|
|
2021-04-05 22:00:54 +08:00
|
|
|
|
# Whether to delete origin files when using compress, default false
|
2021-04-05 22:24:00 +08:00
|
|
|
|
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
2021-04-05 22:00:54 +08:00
|
|
|
|
|
2020-10-10 21:28:43 +08:00
|
|
|
|
# Basic interface address SPA
|
2021-03-11 01:29:42 +08:00
|
|
|
|
VITE_GLOB_API_URL=/basic-api
|
2020-10-10 21:28:43 +08:00
|
|
|
|
|
2020-12-08 22:18:20 +08:00
|
|
|
|
# File upload address, optional
|
|
|
|
|
# It can be forwarded by nginx or write the actual address directly
|
|
|
|
|
VITE_GLOB_UPLOAD_URL=/upload
|
|
|
|
|
|
2020-10-10 21:28:43 +08:00
|
|
|
|
# Interface prefix
|
|
|
|
|
VITE_GLOB_API_URL_PREFIX=
|
2020-10-13 01:40:21 +08:00
|
|
|
|
|
2021-02-04 22:00:25 +08:00
|
|
|
|
# Whether to enable image compression
|
|
|
|
|
VITE_USE_IMAGEMIN= true
|
|
|
|
|
|
2020-10-27 21:27:47 +08:00
|
|
|
|
# use pwa
|
|
|
|
|
VITE_USE_PWA = false
|
|
|
|
|
|
2021-01-09 23:28:52 +08:00
|
|
|
|
# Is it compatible with older browsers
|
2021-07-29 00:06:35 +08:00
|
|
|
|
VITE_LEGACY = true
|