fix CSP by compiling the i18n templates as well

This commit is contained in:
Henry Jameson 2022-04-05 23:45:26 +03:00
parent a613447105
commit 2b0dd2cbae
3 changed files with 118 additions and 2 deletions

View file

@ -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: [