Time display problems in webpack Packaging

it has recently been found that projects created by vue-cli or create-react-app are packaged using webpack"s node.js api, so you can"t show how long it took to package at npm run build. After looking at the official website, I didn"t see any parameters to show the time. How is it generally counted? do you need to calculate it yourself?

Jul.16,2021

this is the scaffolding that performs operations on webpack
startTime and endTime to display the results.
can log the successful parameters.

success parameter stats

...
  hash: 'd6d055804f445af7f9fc',
  startTime: 1537958606459,
  endTime: 1537958626863 } 

webpack packaging shows how long it took

clipboard.png

Menu