FullHuman/purgecss-webpack-plugin

Can we use mini-css-extract-plugin ?

phiphou opened this issue · 3 comments

Can we use this plugin with mini-css-extract-plugin ? If so, how to do it ?

yes, it works out of the box with mini-css-extract-plugin, just be sure to use npm i purgecss-webpack-plugin@next -D with webpack 4

Thanks, works like a charm, just had to deal with some whitelisted classes ;)

In the new version 1.2.0 webpack V3 and V4 are supported, so if you are using the @next channel, please install the normal release