Webpack plugin for PurgeIcons
Install
npm i purge-icons-webpack-plugin -D # yarn add purge-icons-webpack-plugin -D
Add it to webpack.config.js
const { PurgeIcons } = require('purge-icons-webpack-plugin')
// webpack.config.js
module.exports = {
// ...options
plugins: [
new PurgeIcons({
/* PurgeIcons Options */
})
]
}
Import @purge-icons/generated
in your entry file
import '@purge-icons/generated' // <-- This
Check out in PurgeIcons
MIT License © 2020 Anthony Fu