summaryrefslogtreecommitdiff
path: root/webpack
diff options
context:
space:
mode:
Diffstat (limited to 'webpack')
-rw-r--r--webpack/webpack.config.ts24
1 files changed, 19 insertions, 5 deletions
diff --git a/webpack/webpack.config.ts b/webpack/webpack.config.ts
index ee7d4df9ef..8cdb1738cf 100644
--- a/webpack/webpack.config.ts
+++ b/webpack/webpack.config.ts
@@ -88,11 +88,25 @@ module.exports = Object.keys(langs).map(lang => {
}, {
test: /\.ts$/,
exclude: /node_modules/,
- loader: 'ts-loader',
- options: {
- configFile: __dirname + '/../src/web/app/tsconfig.json',
- appendTsSuffixTo: [/\.vue$/]
- }
+ use: [{
+ loader: 'ts-loader',
+ options: {
+ configFile: __dirname + '/../src/web/app/tsconfig.json',
+ appendTsSuffixTo: [/\.vue$/]
+ }
+ }, {
+ loader: 'replace',
+ query: {
+ search: i18nReplacer.pattern.toString(),
+ replace: 'i18nReplacement'
+ }
+ }, {
+ loader: 'replace',
+ query: {
+ search: faPattern.toString(),
+ replace: 'faReplacement'
+ }
+ }]
}]
},
plugins: plugins(version, lang),