summaryrefslogtreecommitdiff
path: root/webpack/plugins/index.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-06-26 09:04:42 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-06-26 09:04:42 +0900
commit9efdfa314fbe423d5348246faa70b76e088eb36b (patch)
treea48bbc1c73bb1972a6628d89de234a60b99a7354 /webpack/plugins/index.ts
parentMerge pull request #577 from syuilo/greenkeeper/@types/webpack-3.0.0 (diff)
downloadsharkey-9efdfa314fbe423d5348246faa70b76e088eb36b.tar.gz
sharkey-9efdfa314fbe423d5348246faa70b76e088eb36b.tar.bz2
sharkey-9efdfa314fbe423d5348246faa70b76e088eb36b.zip
Enable scope hoisting
Diffstat (limited to 'webpack/plugins/index.ts')
-rw-r--r--webpack/plugins/index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/webpack/plugins/index.ts b/webpack/plugins/index.ts
index 3581f61b5e..99b16c2b05 100644
--- a/webpack/plugins/index.ts
+++ b/webpack/plugins/index.ts
@@ -1,6 +1,7 @@
const StringReplacePlugin = require('string-replace-webpack-plugin');
import constant from './const';
+import hoist from './hoist';
//import minify from './minify';
import banner from './banner';
@@ -12,7 +13,8 @@ const isProduction = env === 'production';
export default version => {
const plugins = [
constant(),
- new StringReplacePlugin()
+ new StringReplacePlugin(),
+ hoist()
];
/*
if (isProduction) {