perf(i18n): improve warning prompt

This commit is contained in:
vben
2021-05-26 21:30:44 +08:00
parent afa0eae829
commit 6ef62ba6ea
3 changed files with 64 additions and 47 deletions

View File

@@ -39,6 +39,10 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
root,
resolve: {
alias: [
{
find: 'vue-i18n',
replacement: 'vue-i18n/dist/vue-i18n.cjs.js',
},
// /@/xxxx => src/xxxx
{
find: /\/@\//,
@@ -72,12 +76,6 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
chunkSizeWarningLimit: 2000,
},
define: {
// setting vue-i18-next
// Suppress warning
__VUE_I18N_LEGACY_API__: false,
__VUE_I18N_FULL_INSTALL__: false,
__INTLIFY_PROD_DEVTOOLS__: false,
__APP_INFO__: JSON.stringify(__APP_INFO__),
},
css: {