Use runtime-only build for vue-i18n (#684)

This commit is contained in:
Kavin 2021-12-19 19:46:42 +00:00 committed by GitHub
parent 64db39eea9
commit 05ab126337
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,11 +18,20 @@ module.exports = {
],
},
},
configureWebpack: {
resolve: {
alias: {
"vue-i18n": "vue-i18n/dist/vue-i18n.runtime.esm-bundler.js",
},
},
},
pluginOptions: {
i18n: {
locale: "en",
fallbackLocale: "en",
localeDir: "locales",
fullInstall: true,
enableLegacy: false,
},
},
};