Browse Source
build: 替换vite废弃的选项`brotliSize`为`reportCompressedSize`,移除v-i18n-next的fix warning (#2522)
pull/2542/head
ZhangZhiChao
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
4 deletions
-
vite.config.ts
|
|
|
@ -79,13 +79,10 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { |
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// Turning off brotliSize display can slightly reduce packaging time
|
|
|
|
brotliSize: false, |
|
|
|
reportCompressedSize: false, |
|
|
|
chunkSizeWarningLimit: 2000, |
|
|
|
}, |
|
|
|
define: { |
|
|
|
// setting vue-i18-next
|
|
|
|
// Suppress warning
|
|
|
|
__INTLIFY_PROD_DEVTOOLS__: false, |
|
|
|
__APP_INFO__: JSON.stringify(__APP_INFO__), |
|
|
|
}, |
|
|
|
|
|
|
|
|