Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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.10.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10K
decreased by-0.66%
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 18 Nov 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc