lucleray / next-purgecss

nextjs + purgecss for smaller css bundles
https://www.npmjs.com/package/next-purgecss
134 stars 8 forks source link

Error when when there's nested directory #1

Closed blazeu closed 6 years ago

blazeu commented 6 years ago

The plugin will error out when there's a nested directory inside pages or components directory.

The solution is to pass nodir option to glob, just like this example https://github.com/FullHuman/purgecss-webpack-plugin#options

I'll probably push a PR to fix this later.

lucleray commented 6 years ago

Thanks for your help

A PR would be nice 😃