mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add error log
This commit is contained in:
parent
46ee30204d
commit
d480759f94
@ -13,6 +13,20 @@ export const defaultWatcherHandler = (
|
||||
if (result.hash === lastHash) {
|
||||
return
|
||||
}
|
||||
const needLogging = result.hasErrors() || result.hasWarnings()
|
||||
if (needLogging) {
|
||||
console.log(result.toString({
|
||||
hash: false,
|
||||
assets: false,
|
||||
modules: false,
|
||||
chunks: false,
|
||||
color: true,
|
||||
}))
|
||||
}
|
||||
if (result.hasErrors()) {
|
||||
lastHash = ''
|
||||
return
|
||||
}
|
||||
if (!lastHash) {
|
||||
initCallback(result)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user