diff options
Diffstat (limited to 'webpack/plugins')
| -rw-r--r-- | webpack/plugins/hoist.ts | 3 | ||||
| -rw-r--r-- | webpack/plugins/index.ts | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/webpack/plugins/hoist.ts b/webpack/plugins/hoist.ts new file mode 100644 index 0000000000..f61133f8df --- /dev/null +++ b/webpack/plugins/hoist.ts @@ -0,0 +1,3 @@ +import * as webpack from 'webpack'; + +export default () => new webpack.optimize.ModuleConcatenationPlugin(); 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) { |