Skip to content

Commit 31f3df7

Browse files
author
Pavel Zhytko
committed
impr build script output a bit
1 parent c11d069 commit 31f3df7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@karambasecurity/react-scripts",
3-
"version": "1.0.17-kar.9",
3+
"version": "1.0.17-kar.10",
44
"description": "Configuration and scripts for Create React App.",
55
"repository": "Pavek/create-react-app",
66
"license": "MIT",

packages/react-scripts/scripts/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ measureFileSizesBeforeBuild(paths.appBuild)
7676
' to the line before.\n'
7777
);
7878
} else {
79-
console.log(chalk.green('[Client] Compiled successfully.\n'));
79+
const { time } = stats.toJson({ timings: true });
80+
console.log(chalk.green('[Client] Compiled successfully after'), chalk.white(time + ' ms'));
8081
}
8182

8283
console.log('[Client] File sizes after gzip:');

0 commit comments

Comments
 (0)