aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-04-05 23:45:26 +0300
committerHenry Jameson <me@hjkos.com>2022-04-05 23:45:26 +0300
commit2b0dd2cbae04d728508a8872575c16f52d8ffc58 (patch)
treedd927eeb8cbf03b0110cda29dc113365cb163c5e /build
parenta6134471055935dcbb94d9b2ed69dc8c2cf57832 (diff)
fix CSP by compiling the i18n templates as well
Diffstat (limited to 'build')
-rw-r--r--build/webpack.base.conf.js8
1 files changed, 8 insertions, 0 deletions
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: [