A Rollup plugin that automatically generates SVG markup from Iconify icon references in Svelte projects. Version 2.2.4. It scans source files for Iconify syntax (e.g., 'fa:random'), fetches SVG data from the Iconify API, and bundles the icons into your app. Offers both JS object output and experimental SVG file output. Provides options for recursive search, logging, and always-save mode. Differentiators: offline-capable after initial fetch, no runtime API calls, and fast iteration compared to manual icon export.
npm install rollup-plugin-iconify-svgVerified import paths — ran on the pinned version, not inferred.
Shows setup in rollup.config.js with a single target to generate src/icons.js from src.
Add dest file to watch exclude: watch: { exclude: ['src/icons.js'] }Ensure network access or cache API responses. Use alwaysSave: true to force refresh.
Check file system permissions or adjust dest path.
Add livereload({ watch: 'public', delay: 1000 })Use default ESM import; set commonJs: false.
Ensure dest directory exists and is writable, e.g., 'src/'
Check internet connection; consider caching responses or using offline fallback.
Run 'npm install rollup-plugin-iconify-svg --save-dev'
No dependency data recorded yet.