fix CSP by compiling the i18n templates as well
This commit is contained in:
parent
a613447105
commit
2b0dd2cbae
3 changed files with 118 additions and 2 deletions
|
@ -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: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue