rollup-plugin-purge-icons
v0.10.0
Published
Rollup plugin for PurgeIcons
Downloads
44,882
Readme
Usage
Install
npm i rollup-plugin-purge-icons -D # yarn add rollup-plugin-purge-icons -D
Add it to rollup.config.js
import PurgeIcons from 'rollup-plugin-purge-icons'
export default {
input: 'src/main.js',
output: {
file: 'bundle.js',
format: 'cjs'
},
plugins: [
PurgeIcons({
/* PurgeIcons Options */
})
],
}
Import @purge-icons/generated
in your entry file
import '@purge-icons/generated' // <-- This
Configuration
Check out in PurgeIcons
License
MIT License © 2020 Anthony Fu