diff options
| author | こぴなたみぽ <Syuilotan@yahoo.co.jp> | 2017-11-06 19:10:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-06 19:10:10 +0900 |
| commit | 03e86ec05216d49f9a1af5dd92f0fa12f2da4825 (patch) | |
| tree | 9257b5d2d0abc626187a9ba9640097bc5624d158 /webpack/plugins/index.ts | |
| parent | chore(package): update @types/serve-favicon to version 2.2.29 (diff) | |
| parent | Merge pull request #870 from syuilo/greenkeeper/@types/multer-1.3.5 (diff) | |
| download | misskey-03e86ec05216d49f9a1af5dd92f0fa12f2da4825.tar.gz misskey-03e86ec05216d49f9a1af5dd92f0fa12f2da4825.tar.bz2 misskey-03e86ec05216d49f9a1af5dd92f0fa12f2da4825.zip | |
Merge branch 'master' into greenkeeper/@types/serve-favicon-2.2.29
Diffstat (limited to 'webpack/plugins/index.ts')
| -rw-r--r-- | webpack/plugins/index.ts | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/webpack/plugins/index.ts b/webpack/plugins/index.ts index 99b16c2b05..345af7df9e 100644 --- a/webpack/plugins/index.ts +++ b/webpack/plugins/index.ts @@ -2,25 +2,23 @@ const StringReplacePlugin = require('string-replace-webpack-plugin'); import constant from './const'; import hoist from './hoist'; -//import minify from './minify'; +import minify from './minify'; 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() ]; -/* + if (isProduction) { plugins.push(minify()); } -*/ + plugins.push(banner(version)); return plugins; |