webpack-contrib / purifycss-webpack

UNMAINTAINED, use https://github.com/FullHuman/purgecss-webpack-plugin
MIT License
772 stars 37 forks source link

Accept individual path to `paths` instead of an array? #52

Closed bebraw closed 7 years ago

bebraw commented 8 years ago

It might be useful if paths allowed you to pass a single path too. Now it fails rather messily if you try this. If you decide against this, a nicer warning wouldn't hurt.

I can PR this if you want.

andersontr15 commented 7 years ago

Paths currently as an array doesn't work for me. Is it not compatible trying to glob multiple directories?

bebraw commented 7 years ago

@andersontr15 The implementation has changed a lot. The plugin doesn't come with glob anymore and it actually expects absolute paths instead. I would need some example to say anything more. Please see the verbose mode as well.