更新electron到28.2.10,修复开发模式重启electron进程时偶现旧进程残留的问题

This commit is contained in:
lyswhut
2024-04-05 13:10:45 +08:00
parent e60c2f5f19
commit bfd2ecd26c
23 changed files with 278 additions and 219 deletions
+18 -1
View File
@@ -31,7 +31,12 @@ exports.mergeCSSLoader = beforeLoader => {
esModule: false,
},
},
'css-loader',
{
loader: 'css-loader',
options: {
esModule: false,
},
},
'postcss-loader',
],
},
@@ -63,3 +68,15 @@ exports.logStats = (proc, data) => {
console.log(log)
}
exports.debounce = (fn, delay = 100) => {
let timer = null
let _args
return (...args) => {
_args = args
if (timer) clearTimeout(timer)
timer = setTimeout(() => {
timer = null
fn(..._args)
}, delay)
}
}