Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 7438954

Browse files
committed
avoid CSP by using vue-i18n runtime
1 parent d0dcca6 commit 7438954

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

quasar.conf.js

+4
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ module.exports = configure(function (ctx) {
184184
vue: '@vue/compat',
185185
}
186186

187+
if (!dev) {
188+
cfg.resolve.alias['vue-i18n$'] = resolve(__dirname, './node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js')
189+
}
190+
187191
cfg.plugins.push(
188192
new PreloadWebpackPlugin({
189193
fileWhitelist: [/\.woff?$/],

0 commit comments

Comments
 (0)