Enable scope hoisting
This commit is contained in:
parent
66224f5ac6
commit
9efdfa314f
3 changed files with 7 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue