Commit a2a0a69
committed
perf(build): Add advanced performance monitoring and optimization system
This commit introduces Microsoft-inspired performance tracking and build optimizations to the Sky application's development server and build process. The changes include:
- Added a custom Vite performance monitoring plugin that tracks request timings, server uptime, and build process duration
- Implemented request-level performance logging that reports average and maximum response times every 100 requests
- Enhanced Vite configuration with advanced ESBuild optimizations including tree shaking, minification, and targeted compilation for ES2020
- Added production-specific dependency optimization with forced pre-bundling for critical packages
- Integrated environment-aware settings that apply different optimization strategies for development vs production builds
The performance monitoring system provides real-time visibility into build and server performance, while the optimization improvements reduce bundle sizes and improve build times through advanced tree shaking and minification techniques.1 parent 323e441 commit a2a0a69
1 file changed
Lines changed: 77 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
41 | 87 | | |
42 | 88 | | |
43 | 89 | | |
| |||
83 | 129 | | |
84 | 130 | | |
85 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
86 | 161 | | |
87 | 162 | | |
88 | 163 | | |
| |||
309 | 384 | | |
310 | 385 | | |
311 | 386 | | |
| 387 | + | |
| 388 | + | |
312 | 389 | | |
313 | 390 | | |
314 | 391 | | |
| |||
0 commit comments