Vite Static Assets Plugin

JSON →
library 1.2.2 ·javascript
verified Apr 27, 2026

A Vite plugin (v1.2.2) that automatically scans a static assets directory (default: public), generates a TypeScript module with type-safe asset paths, directory-aware types, and a helper function for URLs. Supports recursive scanning, live HMR updates, and build-time validation. Differentiators: zero-config type generation, directory-aware generics (FilesInFolder<Dir>), and minimal overhead. Alternatives like vite-plugin-static-assets lack TypeScript-first design. Release cadence: initial release, active development.

total hits 11
actors 3 distinct systems
last hit 23h ago AhrefsBot
GPTBot
5
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇹🇷 Turkey · 🇸🇬 Singapore