Vben
2021-03-08 b7ce74abd61fbb2a47344d9dc89994531e66b6f0
提交 | 用户 | age
e8aede 1 # Whether to open mock
2eb2d2 2 VITE_USE_MOCK = true
e8aede 3
B 4 # public path
3509eb 5 VITE_PUBLIC_PATH = /
e8aede 6
8a1bfd 7 # Delete console
V 8 VITE_DROP_CONSOLE = true
9
be3a3e 10 # Whether to enable gzip or brotli compression
993538 11 # Optional: gzip | brotli | none
V 12 # If you need multiple forms, you can use `,` to separate
4d7001 13 VITE_BUILD_COMPRESS = 'none'
8a1bfd 14
e8aede 15 # Basic interface address SPA
B 16 VITE_GLOB_API_URL=/api
17
29461a 18 # File upload address, optional
V 19 # It can be forwarded by nginx or write the actual address directly
20 VITE_GLOB_UPLOAD_URL=/upload
21
e8aede 22 # Interface prefix
B 23 VITE_GLOB_API_URL_PREFIX=
bb3b8f 24
de332a 25 # Whether to enable image compression
V 26 VITE_USE_IMAGEMIN= true
27
a1b990 28 # use pwa
V 29 VITE_USE_PWA = false
30
99ac30 31 # Is it compatible with older browsers
V 32 VITE_LEGACY = false