And I made it use as a cli.
pnpm install @monan/iconify
# define a icon.config.{js,ts,json} file
export interface Config {
root: string
name?: string
commonJS?: boolean
component:
| '@iconify/react'
| '@iconify/vue'
| '@iconify/vue2'
| '@iconify/svelte'
svg?: BundleScriptCustomSVGConfig[]
icons?: string[]
json?: (string | BundleScriptCustomJSONConfig)[]
targetDir?: string
ext?: 'js' | 'ts'
exportJson?: boolean
}
igo