Overview of icons-subsetter
developThe icons-subsetter is a tool designed to optimize the frontend by scanning for Tabler icon classes used across various frontend packages and extracting only the icons that are actually in use.
Key features:
- Optimization: Creates a subset of icons to reduce bundle size.
- Fallback Mechanism: If an icon is called that does not exist in the generated subset, the system automatically falls back to the full Tabler icons font.
- Build Integration: This tool is intended to run during production builds. (Note: It may run once during development mode to provide files necessary to suppress type errors).
To include additional files in the scanning process, you must modify the filesToScan array in src/generator.ts.