Skip to content

Commit 11f7094

Browse files
committed
fix(server logger): 更改打包文件显示单位
1 parent 8cb0c61 commit 11f7094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ exports.run = (options) => {
6666
let contentLength = res._contentLength || '';
6767
if(contentLength){
6868
contentLength = contentLength > 1024
69-
? (contentLength / 1024).toFixed(2) + 'kb '
70-
: contentLength + 'b ';
69+
? (contentLength / 1024).toFixed(2) + ' kB'
70+
: contentLength + ' bytes';
7171
}
7272

7373
format = format.replace(/%date/g, "\x1b[90m" + '[' + (moment().format(dateFormat)) + ']' + "\x1b[0m");

0 commit comments

Comments
 (0)