Regenerate Preload Icons
packages/pwa/src/preloadIcons.gen.ts is auto-generated by vite-plugin-preload-icons during dev server startup. Regenerate it whenever icon usage changes.
Steps
- •Start the dev server, load the page to trigger icon scanning, then stop:
bash
cd packages/pwa && pnpm dev & sleep 5 curl -s http://localhost:5173/ > /dev/null 2>&1 || curl -s http://localhost:5174/ > /dev/null 2>&1 || curl -s http://localhost:5175/ > /dev/null 2>&1 sleep 5 kill %1 2>/dev/null wait 2>/dev/null
- •Verify the change in
packages/pwa/src/preloadIcons.gen.ts. - •Commit the updated file.