summaryrefslogtreecommitdiff
path: root/webpack/webpack.config.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-16 03:26:59 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-16 03:26:59 +0900
commit7e55e6c15943b1aad183dbb24c7bcee86f9fc540 (patch)
treeb3b7bc30f8be823aff79a93a9ee66ef5e4628899 /webpack/webpack.config.ts
parentwip (diff)
downloadsharkey-7e55e6c15943b1aad183dbb24c7bcee86f9fc540.tar.gz
sharkey-7e55e6c15943b1aad183dbb24c7bcee86f9fc540.tar.bz2
sharkey-7e55e6c15943b1aad183dbb24c7bcee86f9fc540.zip
wip
Diffstat (limited to 'webpack/webpack.config.ts')
-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),