Skip to content

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Build StatuslicenseDownloads in weeknpm version

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 rm-unused-css --save-dev

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

webpack.config.js

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

And run webpack via your preferred method.

Donate

Donate with Bitcoin

About

πŸ–– Webpack plugin to remove unused css and duplicated css rules. Remove unused css in nuxtjs, gatsbyjs and more...

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages