]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix size reporting for brotli
authorEvan You <yyx990803@gmail.com>
Thu, 2 Feb 2023 12:54:39 +0000 (20:54 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 2 Feb 2023 12:54:39 +0000 (20:54 +0800)
scripts/build.mjs

index a41550a90b59cee5b256e0dc234ba9dd174bf360..77e50fb2f6ba686797d6c963ecb6554c784965aa 100644 (file)
@@ -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))