DEV Community

Discussion on: How to use tailwindcss with AMP in a Next.js project

Collapse
 
cjimmy profile image
Jimmy Chion

Thanks for writing this up. I'm not using tailwindcss but I'm simply trying to include a root-level index.cssfor fonts and global styles. I adapted your solution and learned a little about postcss along the way.

One question, why are you using a custom env CSS_ENV when you can use process.env.NODE_ENV which is either 'production' or 'development'?