How do it show me the build time
help me ,please! when i use 'npm run start',it tall me 'Compiled successfully!'. but It didn't tell me how long it took,and create those files? i want to get it,What should I do?
Hey @liuzhiyang0113,
I don't think we show build times for the development builds, but you get build times when running the actual production builds with npm build.
But I need to optimize the packing time,Is there any way to know?
How long it takes to package the development build is irrelevant, it'll take a little while because it has to bundle a load of things, the live reload, the fancy error page, and a few other things it needs. Once you've ran yarn build, it will be a minimal build of the codebase. Could you elaborate on why you'd like to know the build time other than needing to optimise the packaging time please?
Are you running on macOS or Linux? You can prefix the command with time npm run build.
Alternatively, you can use Yarn and it will tell you the build time at the end.