Skip to content

Commit

Permalink
feat: add entryPoint prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
maverox committed May 18, 2024
1 parent acf5fa5 commit df39698
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/create-webpack-app/src/plopfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ export default function (plop: NodePlopAPI) {
return resolve(input, answers.projectName);
},
},
{
type: "input",
name: "entryPoint",
message: "Enter the entry point of your application:",
default: "src/index.js",
validate(input, _) {
if (!input) {
return "Entry point cannot be empty";
}
return true;
},
},
{
type: "list",
name: "langType",
Expand Down

0 comments on commit df39698

Please sign in to comment.