From 54c21577c9224b407b5a92f4a6cfac503ce9ed3a Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 16 Feb 2018 03:26:59 +0900 Subject: [PATCH] wip --- webpack/webpack.config.ts | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/webpack/webpack.config.ts b/webpack/webpack.config.ts index ee7d4df9e..8cdb1738c 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),