From a5de5b36f535672ebff77b510537c8de4df4812a Mon Sep 17 00:00:00 2001 From: alex8088 <244096523@qq.com> Date: Wed, 28 Dec 2022 21:27:53 +0800 Subject: [PATCH] chore(bytecodePlugin): KiB to kB --- src/plugins/bytecode.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/bytecode.ts b/src/plugins/bytecode.ts index 1e49bf5..07d9850 100644 --- a/src/plugins/bytecode.ts +++ b/src/plugins/bytecode.ts @@ -296,10 +296,10 @@ export function bytecodePlugin(options: BytecodeOptions = {}): Plugin | null { if (len > longest) longest = len }) bytecodeFiles.forEach(file => { - const kibs = file.size / 1024 + const kbs = file.size / 1000 config.logger.info( `${colors.gray(colors.white(colors.dim(outDir)))}${colors.green(file.name.padEnd(longest + 2))} ${ - kibs > chunkLimit ? colors.yellow(`${kibs.toFixed(2)} KiB`) : colors.dim(`${kibs.toFixed(2)} KiB`) + kbs > chunkLimit ? colors.yellow(`${kbs.toFixed(2)} kB`) : colors.dim(`${kbs.toFixed(2)} kB`) }` ) })