the result .min.css file is only 4kb in size and does not work
Thank you for providing that package. Not having to use a package.json is a huge benefit. Unfortunately it does not work in my case because the system builds a styles.min.css file which does not have the needed classes. is it possible that the tailwind config does not support .cshtml files?
Facing the same issue. It builds the .min.css but it's a 4kb file with no styles.
Is it possible that you provide an example project?
Is it possible that you provide an example project?
Thanks for your response. I set up a small project that contains the issue at https://github.com/pavloss/tailwind . Hopefully it's helpful.
Okay, this is a configuration problem. I will have to update the default configuration to fix this for new projects.
You will have to make the following changes to your configuration (tailwind.config.js):
- Remove "purge" field
- Add content field (e.g.
content: ["./**/*.{cshtml,js}"])
I hope this helps you.
Thanks @BamButz , very helpful indeed!