What is project statistics?
The statistics system automatically collects information while the development mode is running. It gives you a clear overview of how long the project was worked on and how actively files were edited.
How to enable statistics
To start collecting statistics, enable the feature inside
template.config.js.
statistics: {
enable: true
}
Once enabled, the system will start tracking data automatically on the next dev run.
How to view statistics
You can view collected statistics in two ways.
Manual command
Run the following command in the terminal:
npm run stat
Automatic output on build
You can also enable automatic statistics output when running a production build:
statistics: {
enable: true,
showonbuild: true
}
What data is collected
- Project start date — the first time dev mode was launched.
- Project end date — last dev stop or last production build.
- Total work time — total time dev mode was running.
- Edited files count — number of files modified during development.
- Sessions count — how many times dev mode was started/stopped.
Clearing project statistics
If you need to reset all collected statistics for the project, use the command below.
npm run stat-clear
Download
Track your work, understand your process, and build projects more consciously. Download the Animmaster Vite Template and start working with built-in statistics today.