0.10.0 • Published 1 year ago
vite-plugin-purge-icons v0.10.0
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 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')
Configuration
Check out in PurgeIcons
Example
See the Vitesse starter template.
License
MIT License © 2020 Anthony Fu
0.10.0
1 year ago
0.9.2
2 years ago
0.9.1
2 years ago
0.9.0
2 years ago
0.8.2
2 years ago
0.8.1
3 years ago
0.8.0
3 years ago
0.7.0
4 years ago
0.6.0
4 years ago
0.5.2
4 years ago
0.5.1
4 years ago
0.5.0
4 years ago
0.4.5
4 years ago
0.4.4
4 years ago
0.4.2
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.3.0
4 years ago
0.3.1
4 years ago
0.2.11
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago
0.0.1
4 years ago