Socket
Book a DemoInstallSign in
Socket

vite-plugin-purge-icons

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-purge-icons

vite-plugin-purge-icons

0.8.1
Source
npmnpm
Version published
Weekly downloads
9.3K
-9.23%
Maintainers
1
Weekly downloads
 
Created
Source

vite-plugin-purge-icons

Vite Plugin for PurgeIcons

Usage

ℹ️ 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 your node_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')

Configuration

Check out in PurgeIcons

Example

See the Vitesse starter template.

License

MIT License © 2020 Anthony Fu

FAQs

Package last updated on 28 Feb 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.