summaryrefslogtreecommitdiff
path: root/webpack
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-15 12:36:42 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-15 12:36:42 +0900
commitca604692628dcba95681964e8deec5ca75049c4e (patch)
tree0e26d2d049e83db42f9e9c9e275052f6a90ba55d /webpack
parentwip (diff)
downloadsharkey-ca604692628dcba95681964e8deec5ca75049c4e.tar.gz
sharkey-ca604692628dcba95681964e8deec5ca75049c4e.tar.bz2
sharkey-ca604692628dcba95681964e8deec5ca75049c4e.zip
wip
Diffstat (limited to 'webpack')
-rw-r--r--webpack/plugins/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/webpack/plugins/index.ts b/webpack/plugins/index.ts
index 9850db485c..d97f781558 100644
--- a/webpack/plugins/index.ts
+++ b/webpack/plugins/index.ts
@@ -11,11 +11,11 @@ const isProduction = env === 'production';
export default (version, lang) => {
const plugins = [
consts(lang),
- new StringReplacePlugin(),
- hoist()
+ new StringReplacePlugin()
];
if (isProduction) {
+ plugins.push(hoist());
plugins.push(minify());
}