diff --git a/packages/generators/init-generator.ts b/packages/generators/init-generator.ts index a50f04813d3..715b44e8797 100644 --- a/packages/generators/init-generator.ts +++ b/packages/generators/init-generator.ts @@ -92,13 +92,11 @@ export default class InitGenerator extends Generator { .then( (entryOptions: object | string): Promise<{}> => { if (typeof entryOptions === "string" && entryOptions.length > 0) { - return this.prompt([ - Input("outputType", "In which folder do you want to store your generated bundles? (dist):") - ]); - } - if (entryOptions !== '""') { - this.configuration.config.webpackOptions.entry = entryOptions; + if (entryOptions !== "\"\"" && entryOptions !== "\'\'") { + this.configuration.config.webpackOptions.entry = entryOptions; + } } + return this.prompt([ Input("outputType", "In which folder do you want to store your generated bundles? (dist):") ]);