Skip to content

Commit 524f035

Browse files
nilliamsevenstensberg
authored andcommitted
fix: Deps 'webpack' and 'uglifyjs-webpack-plugin' not installed when user answers yes to 'using ES2015' (#135). (#136)
1 parent 45b9ffd commit 524f035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/creator/yeoman/webpack-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports = class WebpackGenerator extends Generator {
9494
]).then( (ans) => {
9595
if(ans['babelConfirm'] === true) {
9696
this.configuration.config.webpackOptions.module.rules.push(getBabelPlugin());
97-
this.npmInstalls = ['babel-loader', 'babel-core', 'babel-preset-env'];
97+
this.npmInstalls.push('babel-loader', 'babel-core', 'babel-preset-env');
9898
}
9999
}).then( () => {
100100
this.prompt([

0 commit comments

Comments
 (0)