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'?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for writing this up. I'm not using tailwindcss but I'm simply trying to include a root-level
index.css
for 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 useprocess.env.NODE_ENV
which is either 'production' or 'development'?