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

Commit

Permalink
avoid CSP by using vue-i18n runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
tiltec committed Apr 11, 2022
1 parent d0dcca6 commit 7438954
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ module.exports = configure(function (ctx) {
vue: '@vue/compat',
}

if (!dev) {
cfg.resolve.alias['vue-i18n$'] = resolve(__dirname, './node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js')
}

cfg.plugins.push(
new PreloadWebpackPlugin({
fileWhitelist: [/\.woff?$/],
Expand Down

0 comments on commit 7438954

Please sign in to comment.