diff options
| author | Henry Jameson <me@hjkos.com> | 2022-04-07 10:33:20 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-04-07 10:33:20 +0300 |
| commit | ab7490e49b275425176aec66405fd20a4e6f958d (patch) | |
| tree | b07534e2cb9867456978a2bc9477c3948d401efd /build/webpack.base.conf.js | |
| parent | 6a319154d94c51f0464e0de31c6f88fbe20defea (diff) | |
| parent | d8324dd80b2beeb96b81b4bc05df12550bbda407 (diff) | |
Merge remote-tracking branch 'origin/develop' into threecolumn
* origin/develop:
Fix active popover style
Use panel text instead of text for shoutbox icon
Fix dropdown menu style inside panel header
Fix phoenix sockets in dev mode
Fix no reactivity on vuex 4 values
fix tegulu
heck
fix i18n for good??
force runtime build of i18n
fix CSP by compiling the i18n templates as well
Diffstat (limited to 'build/webpack.base.conf.js')
| -rw-r--r-- | build/webpack.base.conf.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index f442b2a0..f8c544d7 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -38,7 +38,8 @@ module.exports = { 'static': path.resolve(__dirname, '../static'), 'src': path.resolve(__dirname, '../src'), 'assets': path.resolve(__dirname, '../src/assets'), - 'components': path.resolve(__dirname, '../src/components') + 'components': path.resolve(__dirname, '../src/components'), + 'vue-i18n': 'vue-i18n/dist/vue-i18n.runtime.esm-bundler.js' } }, module: { @@ -59,6 +60,15 @@ module.exports = { } }, { + enforce: 'post', + 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') + ] + }, + { test: /\.vue$/, loader: 'vue-loader', options: { |
