purge-icons
purge-icons copied to clipboard
🎐 Bundles icons on demand
vite-plugin-purge-icons does not adapt to Vite 3
the collection.icons are incomplete. such as 'line-md' icons; ``` async function GetIconsData(icons, options = {}) { const parsed = ParseIconNames(icons); return await Promise.all(Object.entries(parsed).map(async ([id, icons2]) => { const collection =...
I'm using vite-plugin-purge-icons, but I can't find an option to turn off caching ```js // vite.config.js import purgeIcons from 'vite-plugin-purge-icons'; export default () => { plugins: [ purgeIcons({ disableCache: 'all',...
``` environment: "dependencies": { "@iconify/iconify": "^2.2.1", "vue": "^3.2.25" }, "devDependencies": { "@iconify/json": "^2.1.33", "@vitejs/plugin-vue": "^2.3.1", "typescript": "^4.5.4", "vite": "^2.9.5", "vite-plugin-purge-icons": "^0.8.1", "vue-tsc": "^0.34.7" } --------------------------------------------------------------------------------------------------------------------------- code: const onTest = ()...
related issues: https://github.com/nuxt/nuxt.js/issues/13452 Thanks a lot.
I have a Vue component which has used the `renderSVG`'s options hash to set width and height like so: ```ts Iconify.renderSVG(props.icon, props.kind === "icon" ? { width: "100%", height: "100%"...
When using nuxt dev mode (`npm run dev`) everything works as expected. When building for production (via `npm run example:build` and `npm run example:start`) no icons are displayed. Tested this...
I use Vite and when trying to change some attributes for the icon, the page must be reloaded to get the changes. Here is the example: ```html ``` And when...
Icon always be static,like follow image  vite config ```typescript PurgeIcons({ // globs for searching source file to analyze content: ['**/*.html', '**/*.jsx', '**/*.tsx'], }), ``` main.tsx ```typescript import '@purge-icons/generated'; //......
The first time I start a nuxt project I get this error, after one or more hot reloads it get fixed. ```js import Iconify from '@purge-icons/generated' ``` When the error...