From: Evan You Date: Thu, 2 Feb 2023 12:54:39 +0000 (+0800) Subject: chore: fix size reporting for brotli X-Git-Tag: v3.3.0-alpha.1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5dcbad6143e3be7b78274ff5e71904676c9ee27;p=thirdparty%2Fvuejs%2Fcore.git chore: fix size reporting for brotli --- diff --git a/scripts/build.mjs b/scripts/build.mjs index a41550a90b..77e50fb2f6 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -193,7 +193,7 @@ function checkFileSize(filePath) { const gzipped = gzipSync(file) const gzippedSize = (gzipped.length / 1024).toFixed(2) + 'kb' const compressed = compress(file) - const compressedSize = (compressed?.length || 0 / 1024).toFixed(2) + 'kb' + const compressedSize = (compressed?.length / 1024).toFixed(2) + 'kb' console.log( `${chalk.gray( chalk.bold(path.basename(filePath))