Skip to content

Commit 694d69c

Browse files
committed
add size to build
1 parent 3c25aaa commit 694d69c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ function hashFile(filename) {
169169
if (fs.existsSync(filename)) {
170170
const shasum = crypto.createHash('sha1');
171171
shasum.update(fs.readFileSync(filename));
172-
console.log(`${filename} => ${shasum.digest('hex')}`);
172+
console.log(`\n${filename} => ${shasum.digest('hex')}`);
173+
console.log(`${fs.statSync(filename).size} bytes`);
173174
}
174175
}
175176

0 commit comments

Comments
 (0)