Skip to content

Commit

Permalink
fix(add): add handling for topScope
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 committed Mar 18, 2019
1 parent 62ab32d commit 1162cf5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/generators/add-generator.ts
Expand Up @@ -161,7 +161,17 @@ export default class AddGenerator extends Generator {
this.configuration.config.webpackOptions.entry = entryOptions;
this.configuration.config.item = action;
});
}
} else {
if(action === 'topScope'){
return this.prompt([
Input("topScope", "Enter line youwant to add to topScope"),
])
.then((topScopeAnswer) => {
this.configuration.config.topScope.push(topScopeAnswer.topScope);
done();
})
}
}
const temp: string = action;
if (action === "resolveLoader") {
action = "resolve";
Expand Down

0 comments on commit 1162cf5

Please sign in to comment.