fix: 修复 webpack 修改文件重复编译问题

This commit is contained in:
winixt 2022-05-14 19:15:50 +08:00
parent 2f1c551522
commit fb3b5a6dd1

View File

@ -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]',