Closed mattrothenberg closed 4 years ago
If you're using Next.js built-in CSS support, you can use the @fullhuman/postcss-purgecss
PostCSS plugin to remove unused CSS.
Here's an example with tailwindcss
: https://github.com/zeit/next.js/blob/master/examples/with-tailwindcss/postcss.config.js.
@lucleray could you please put this in the readme document. So people wouldn't need to try to find an answer to this in the closed isssues like I'm doing at the moment. I believe you could also refactor the package due to the next.js' built-in css support.
Hello! Now that Next has built-in CSS support, I'm curious if it's totally necessary to use
@zeit/next-css
in conjunction with this plugin? Note that runningnext build
with that plugin specified leads to a warning.