From c5e1b97a8fd1bae735cab81e16310009ca86b20b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 2 Jun 2023 16:51:32 +0800 Subject: [PATCH] fix: fix the issue that the config does not exist. --- core/package.json | 2 +- core/src/scripts/build.ts | 1 + core/src/scripts/start.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/package.json b/core/package.json index f0cb256f..d967dae9 100644 --- a/core/package.json +++ b/core/package.json @@ -50,7 +50,7 @@ "@types/react-dev-utils": "~9.0.10", "@types/semver": "~7.5.0", "@types/testing-library__jest-dom": "^5.14.3", - "auto-config-loader": "^1.4.0", + "auto-config-loader": "^1.5.0", "ajv": "^8.8.0", "eslint-config-react-app": "^7.0.0", "fs-extra": "~10.1.0", diff --git a/core/src/scripts/build.ts b/core/src/scripts/build.ts index eaa24e88..6bba5070 100644 --- a/core/src/scripts/build.ts +++ b/core/src/scripts/build.ts @@ -24,6 +24,7 @@ export default async function build(argvs: BuildArgs) { * Specify the directory where the configuration is located. */ cwd: configOverrides ? path.resolve(process.cwd(), argvs['config-overrides']) : undefined, + ignoreLog: true, }); const overridesHandle = kktrc.default || argvs.overridesWebpack; diff --git a/core/src/scripts/start.ts b/core/src/scripts/start.ts index ce945f62..74b270bb 100644 --- a/core/src/scripts/start.ts +++ b/core/src/scripts/start.ts @@ -41,6 +41,7 @@ export default async function start(argvs: StartArgs) { * Specify the directory where the configuration is located. */ cwd: configOverrides ? path.resolve(process.cwd(), argvs['config-overrides']) : undefined, + ignoreLog: true, }); await overridesClearConsole(argvs); await overridesOpenBrowser(argvs);