From fb3b5a6dd15325782b43f7bfe4a4bc765893c0dc Mon Sep 17 00:00:00 2001 From: winixt Date: Sat, 14 May 2022 19:15:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20webpack=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=96=87=E4=BB=B6=E9=87=8D=E5=A4=8D=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/plugins/commands/webpackConfig/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/index.js b/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/index.js index 32536b55..6f552241 100644 --- a/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/index.js +++ b/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/index.js @@ -284,6 +284,10 @@ export default async function getConfig({ api, cwd, config, env, entry = {}, mod level: 'error', ...memo.infrastructureLogging, }; + memo.watchOptions = { + aggregateTimeout: 200, + ...memo.watchOptions, + }; memo.output = { ...memo.output, assetModuleFilename: 'static/[name][hash:8][ext]',