summaryrefslogtreecommitdiff
path: root/webpack.config.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-15 05:27:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-15 05:27:53 +0900
commit2588e7ae9edef7b3d9f8fc75a797c0311e56a2d9 (patch)
treee19f91d55c9f3f8e898e531f34fe22c1f6471ccc /webpack.config.ts
parent:v: (diff)
downloadmisskey-2588e7ae9edef7b3d9f8fc75a797c0311e56a2d9.tar.gz
misskey-2588e7ae9edef7b3d9f8fc75a797c0311e56a2d9.tar.bz2
misskey-2588e7ae9edef7b3d9f8fc75a797c0311e56a2d9.zip
oops
Diffstat (limited to 'webpack.config.ts')
-rw-r--r--webpack.config.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/webpack.config.ts b/webpack.config.ts
index f24160c55a..e3684f9d89 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -10,6 +10,7 @@ const minify = require('html-minifier').minify;
const WebpackOnBuildPlugin = require('on-build-webpack');
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
+
import I18nReplacer from './src/common/build/i18n';
import { pattern as faPattern, replacement as faReplacement } from './src/common/build/fa';
const constants = require('./src/const.json');
@@ -23,6 +24,7 @@ const version = meta.version;
const env = process.env.NODE_ENV;
const isProduction = env === 'production';
+//#region Replacer definitions
global['faReplacement'] = faReplacement;
global['collapseSpacesReplacement'] = html => {
@@ -36,6 +38,7 @@ global['collapseSpacesReplacement'] = html => {
global['base64replacement'] = (_, key) => {
return fs.readFileSync(__dirname + '/src/web/' + key, 'base64');
};
+//#endregion
module.exports = Object.keys(langs).map(lang => {
// Chunk name