diff options
| author | こぴなたみぽ <Syuilotan@yahoo.co.jp> | 2017-11-06 19:09:41 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-06 19:09:41 +0900 |
| commit | 2099f494d7662a9298c6b3d9d2fe5488872f8ae1 (patch) | |
| tree | d552a0b58a07b82e842715f4dbd22380ae0007be /webpack/plugins | |
| parent | chore(package): update @types/multer to version 1.3.5 (diff) | |
| parent | Merge pull request #710 from syuilo/greenkeeper/@types/bcryptjs-2.4.1 (diff) | |
| download | misskey-2099f494d7662a9298c6b3d9d2fe5488872f8ae1.tar.gz misskey-2099f494d7662a9298c6b3d9d2fe5488872f8ae1.tar.bz2 misskey-2099f494d7662a9298c6b3d9d2fe5488872f8ae1.zip | |
Merge branch 'master' into greenkeeper/@types/multer-1.3.5
Diffstat (limited to 'webpack/plugins')
| -rw-r--r-- | webpack/plugins/const.ts | 3 | ||||
| -rw-r--r-- | webpack/plugins/index.ts | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/webpack/plugins/const.ts b/webpack/plugins/const.ts index ccfcb45260..f64160b01a 100644 --- a/webpack/plugins/const.ts +++ b/webpack/plugins/const.ts @@ -7,7 +7,8 @@ import * as webpack from 'webpack'; import version from '../../src/version'; const constants = require('../../src/const.json'); -export default () => new webpack.DefinePlugin({ +export default lang => new webpack.DefinePlugin({ VERSION: JSON.stringify(version), + LANG: JSON.stringify(lang), THEME_COLOR: JSON.stringify(constants.themeColor) }); diff --git a/webpack/plugins/index.ts b/webpack/plugins/index.ts index d5191f1555..345af7df9e 100644 --- a/webpack/plugins/index.ts +++ b/webpack/plugins/index.ts @@ -8,9 +8,9 @@ import banner from './banner'; const env = process.env.NODE_ENV; const isProduction = env === 'production'; -export default version => { +export default (version, lang) => { const plugins = [ - constant(), + constant(lang), new StringReplacePlugin(), hoist() ]; |