vseventer/uncss-webpack-plugin

Add an example

gw0 opened this issue · 2 comments

gw0 commented

This plugin is a great idea, but I was not able to get it working (uncss from console works). It would be helpful if you could provide a usage example.

Hi @gw0, did you use the plugin as defined in the Usage section of the readme? Adding this module as plugin is really all you should need for basic uncss-ing.

gw0 commented

I tried to use it with a Vue.js application based on https://github.com/vuejs-templates/webpack, that already contains a complex Webpack processing pipeline. An example would be good, because it is not obvious what your plugin expects in each field.

I ended up using PurifyCSSPlugin that I just inserted into build/webpack.prod.conf.js. Maybe your plugin will work out of the box when Vue.js templates switch to webpack-dev-server (vuejs-templates/webpack#964).