unplugin-iconify
v0.1.1-beta.5
Published
Unplugin for iconify.
Downloads
21
Maintainers
Readme
unplugin-iconify
Features
- ✨
cssGenerators
- Easy to generate icons CSS as your expected
Install
npm i unplugin-iconify
// vite.config.ts
import starter from 'unplugin-iconify/vite'
export default defineConfig({
plugins: [
starter({
/* options */
}),
],
})
Example: playground/
// rollup.config.js
import starter from 'unplugin-iconify/rollup'
export default {
plugins: [
starter({
/* options */
}),
],
}
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-iconify/webpack')({
/* options */
}),
],
}
// nuxt.config.js
export default defineNuxtConfig({
modules: [
[
'unplugin-iconify/nuxt',
{
/* options */
},
],
],
})
This module works for both Nuxt 2 and Nuxt Vite
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-iconify/webpack')({
/* options */
}),
],
},
}
// esbuild.config.js
import { build } from 'esbuild'
import starter from 'unplugin-iconify/esbuild'
build({
plugins: [starter()],
})
Related
- tailwindcss-plugin-iconify - Use any SVG icon powered by Iconify for Tailwind CSS, easy to use local icons and figma icons in particular.