We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ab32d commit 1162cf5Copy full SHA for 1162cf5
packages/generators/add-generator.ts
@@ -161,7 +161,17 @@ export default class AddGenerator extends Generator {
161
this.configuration.config.webpackOptions.entry = entryOptions;
162
this.configuration.config.item = action;
163
});
164
- }
+ } else {
165
+ if(action === 'topScope'){
166
+ return this.prompt([
167
+ Input("topScope", "Enter line youwant to add to topScope"),
168
+ ])
169
+ .then((topScopeAnswer) => {
170
+ this.configuration.config.topScope.push(topScopeAnswer.topScope);
171
+ done();
172
+ })
173
+ }
174
175
const temp: string = action;
176
if (action === "resolveLoader") {
177
action = "resolve";
0 commit comments