diff --git a/lib/creator/yeoman/webpack-generator.js b/lib/creator/yeoman/webpack-generator.js index 8e235315f87..8ddc76e67c7 100644 --- a/lib/creator/yeoman/webpack-generator.js +++ b/lib/creator/yeoman/webpack-generator.js @@ -94,7 +94,7 @@ module.exports = class WebpackGenerator extends Generator { ]).then( (ans) => { if(ans['babelConfirm'] === true) { this.configuration.config.webpackOptions.module.rules.push(getBabelPlugin()); - this.npmInstalls = ['babel-loader', 'babel-core', 'babel-preset-env']; + this.npmInstalls.push('babel-loader', 'babel-core', 'babel-preset-env'); } }).then( () => { this.prompt([