css-cleanup-webpack-plugin

1.0.2 • Public • Published

css-cleanup-webpack-plugin

Remove unused css and duplicated css rules. It detects all unused css rules by looking into all assets on the webpack output dir.

Requirements

This module requires a minimum of Node v6.9.0 and Webpack v4.0.0.

Getting Started

To begin, you'll need to install css-cleanup-webpack-plugin:

$ npm install css-cleanup-webpack-plugin --save-dev

Then add the plugin to your webpack config. For example:

webpack.config.js

const CssCleanupPlugin = require('css-cleanup-webpack-plugin');
 
module.exports = {
  plugins: [
    new CssCleanupPlugin()
  ]
}

And run webpack via your preferred method.

/css-cleanup-webpack-plugin/

    Package Sidebar

    Install

    npm i css-cleanup-webpack-plugin

    Weekly Downloads

    9

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.07 kB

    Total Files

    3

    Last publish

    Collaborators

    • doweb