From 2b0dd2cbae04d728508a8872575c16f52d8ffc58 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 5 Apr 2022 23:45:26 +0300 Subject: fix CSP by compiling the i18n templates as well --- build/webpack.base.conf.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build') diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index f442b2a0..8d530ecc 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -98,6 +98,14 @@ module.exports = { } } }, + { + test: /\.(json5?|ya?ml)$/, // target json, json5, yaml and yml files + type: 'javascript/auto', + loader: '@intlify/vue-i18n-loader', + include: [ // Use `Rule.include` to specify the files of locale messages to be pre-compiled + path.resolve(__dirname, 'src/i18n') + ] + }, ] }, plugins: [ -- cgit v1.2.3-70-g09d2