style: log when large file is removed
This commit is contained in:
parent
8cb1b7f724
commit
f339c1f171
|
@ -85,6 +85,7 @@ const f = async () => {
|
|||
await Promise.all(files.map(async (filename) => {
|
||||
const { size } = await stat(join(publicPath, filename))
|
||||
if (size >= (25 * 1024 * 1024)) {
|
||||
console.log(`${filename} is more than 25MiB, deleting...`)
|
||||
await rm(join(publicPath, filename), { force: true })
|
||||
}
|
||||
}))
|
||||
|
|
Loading…
Reference in New Issue