lucleray / next-purgecss

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

A small mistake in documentation. #24

Closed PanLydka closed 5 years ago

PanLydka commented 5 years ago

Hi, propably I found a small mistake. purgeCssEnabled

The argument in function is called differently. module.exports = withCss( withPurgeCss({ purgeCssEnabled: ({ dev, isServer }) => (!isDev && !isServer) // Only enable PurgeCSS for client-side production builds }) )

probably should be module.exports = withCss( withPurgeCss({ purgeCssEnabled: ({ isDev, isServer }) => (!isDev && !isServer) // Only enable PurgeCSS for client-side production builds }) )

lucleray commented 5 years ago

I updated, thank you 🙏