From f339c1f171465ca478856cb8422039ccd0c86e13 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 28 Oct 2024 07:36:01 +0000 Subject: [PATCH] style: log when large file is removed --- src/build.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/build.js b/src/build.js index 9e6ce1a..9e60c38 100644 --- a/src/build.js +++ b/src/build.js @@ -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 }) } }))