From 8326501cc2ad65937b2f10a4ccb287e87cd28932 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Thu, 19 Dec 2024 22:39:26 +0300 Subject: [PATCH] fix: better default values --- packages/create-webpack-app/src/generators/init/default.ts | 4 ++-- packages/create-webpack-app/src/generators/init/react.ts | 2 +- packages/create-webpack-app/src/generators/init/svelte.ts | 2 +- packages/create-webpack-app/src/generators/init/vue.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/create-webpack-app/src/generators/init/default.ts b/packages/create-webpack-app/src/generators/init/default.ts index fa95521bc19..64a03a60954 100644 --- a/packages/create-webpack-app/src/generators/init/default.ts +++ b/packages/create-webpack-app/src/generators/init/default.ts @@ -50,7 +50,7 @@ export default async function (plop: NodePlopAPI) { name: "cssType", message: "Which of the following CSS solution do you want to use?", choices: ["none", "CSS only", "SASS", "LESS", "Stylus"], - default: "none", + default: "CSS only", filter: (input, answers) => { if (input === "none") { answers.isCSS = false; @@ -81,7 +81,7 @@ export default async function (plop: NodePlopAPI) { name: "extractPlugin", message: "Do you want to extract CSS into separate files?", choices: ["No", "Only for Production", "Yes"], - default: "No", + default: "Only for Production", }, { type: "list", diff --git a/packages/create-webpack-app/src/generators/init/react.ts b/packages/create-webpack-app/src/generators/init/react.ts index 6f4fe9873d6..6f97db884f5 100644 --- a/packages/create-webpack-app/src/generators/init/react.ts +++ b/packages/create-webpack-app/src/generators/init/react.ts @@ -84,7 +84,7 @@ export default async function (plop: NodePlopAPI) { name: "extractPlugin", message: "Do you want to extract CSS into separate files?", choices: ["No", "Only for Production", "Yes"], - default: "No", + default: "Only for Production", }, { type: "list", diff --git a/packages/create-webpack-app/src/generators/init/svelte.ts b/packages/create-webpack-app/src/generators/init/svelte.ts index 29f6bdf38d3..14f1df83ff7 100644 --- a/packages/create-webpack-app/src/generators/init/svelte.ts +++ b/packages/create-webpack-app/src/generators/init/svelte.ts @@ -75,7 +75,7 @@ export default async function (plop: NodePlopAPI) { name: "extractPlugin", message: "Do you want to extract CSS into separate files?", choices: ["No", "Only for Production", "Yes"], - default: "No", + default: "Only for Production", }, { type: "list", diff --git a/packages/create-webpack-app/src/generators/init/vue.ts b/packages/create-webpack-app/src/generators/init/vue.ts index 42c4e5011ce..8af8c51f540 100644 --- a/packages/create-webpack-app/src/generators/init/vue.ts +++ b/packages/create-webpack-app/src/generators/init/vue.ts @@ -83,7 +83,7 @@ export default async function (plop: NodePlopAPI) { name: "extractPlugin", message: "Do you want to extract CSS into separate files?", choices: ["No", "Only for Production", "Yes"], - default: "No", + default: "Only for Production", }, { type: "list",