From 7e55e6c15943b1aad183dbb24c7bcee86f9fc540 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 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),