0.1.1 • Published 3 years ago
@anarmawala/vite-plugin-icons v0.1.1
@anarmawala/vite-plugin-icons
Simple and straightforward icon generation tool for web applications using Vite
Features
- Create PNG icon file in multiple sizes from a single SVG File
- Custom icon name prefixing
- Automatically injects icon links into the HTML
- WIP: Allowing for custom sizing and naming
Usage
Install the package through NPM or Yarn:
npm i @anarmawala/vite-plugin-icons
or
yarn add @anarmawala/vite-plugin-icons
if you are using Yarn.
Add it to your vite.config.js
// vite.config.js
import { LoadIcon } from '@anarmawala/vite-plugin-icons'
export default {
plugins: [
// ... other plugins
LoadIcon({src: path.resolve(__dirname, 'logo.svg')})
]
}
License
MIT License © 2021 Arshad Narmawala