mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Created build-time script to generate TypeScript manifest from public/assets, avoiding import.meta.glob limitations. Images stay in public/ for scalability (supports hundreds), while components get type-safe auto-discovery. Manifest auto-regenerates before builds.
Generated Files
This directory contains auto-generated TypeScript files. Do not edit these files manually.
asset-manifest.ts
Auto-generated manifest of all banner and not-found images from public/assets/.
To regenerate:
yarn generate:assets
Auto-regenerated:
- Before every build (
yarn build) - Before dev server start (
yarn start)
To add new banners:
- Add files to
public/assets/banners/following the patternbanner-*.{jpg,jpeg,gif,png} - Run
yarn generate:assets(or it will auto-run on next build/start)
To add new not-found images:
- Add files to
public/assets/not-found/following the patternnot-found-*.{jpg,jpeg,gif,png} - Run
yarn generate:assets(or it will auto-run on next build/start)