nukecss-webpack
Uses nukecss to eliminate unused css from your webpack bundle. Support for the extract-text-webpack-plugin
and for style-loader
.
# for webpack 4 and mini-css-extract-plugin npm install --save-dev nukecss-webpack# for webpack 2/3 and extract-text-webpack-plugin npm install --save-dev nukecss-webpack@^1.4.0``` ## Usage #### Install nukecss-webpack `npm install --save-dev nukecss-webpack` #### Setup Your Webpack Configuration ```jsconst NukeCssPlugin = require module.exports =
Save Bytes
Before
out.css 146 kB 0 [emitted] main
After
out.css 6.82 kB 0 [emitted] main