
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
vite-plugin-purge-icons
Advanced tools
Vite Plugin for PurgeIcons
ℹ️ Vite 2 is supported from
v0.5.x
, Vite 1's support is discontinued.
Install
npm i @iconify/iconify
npm i vite-plugin-purge-icons @iconify/json -D
@iconify/json
is an optional dependencies of PurgeIcons. When it presents in yournode_modules
, PurgeIcons will load the icons from it locally, otherwise, PurgeIcons will try to fetch the iconset your requested online.
Add it to vite.config.js
// vite.config.js
import PurgeIcons from 'vite-plugin-purge-icons'
export default {
plugins: [
PurgeIcons({
/* PurgeIcons Options */
})
]
}
Import @purge-icons/generated
in your main.js
import { createApp } from 'vue'
import App from './App.vue'
import '@purge-icons/generated' // <-- This
createApp(App).mount('#app')
Check out in PurgeIcons
See the Vitesse starter template.
MIT License © 2020 Anthony Fu
FAQs
vite-plugin-purge-icons
The npm package vite-plugin-purge-icons receives a total of 8,628 weekly downloads. As such, vite-plugin-purge-icons popularity was classified as popular.
We found that vite-plugin-purge-icons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.