aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/webpack.base.conf.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js
index f8bd9902..f8c544d7 100644
--- a/build/webpack.base.conf.js
+++ b/build/webpack.base.conf.js
@@ -60,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: {
@@ -99,14 +108,6 @@ 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: [