Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Latest commit

 

History

History

purge-icons-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

purge-icons-webpack-plugin

Webpack plugin for PurgeIcons

Usage

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

Configuration

Check out in PurgeIcons

License

MIT License © 2020 Anthony Fu