I need to create a Razor Class Library with components for Blazor.
The components within this library will have Tailwind CSS classes in their markup, but no Tailwind installed.
This library needs to be packed and published in NuGet and then consumed in the project that will have Tailwind installed.
Since NuGet packages are not like node_modules
in NodeJS, and we don't have direct access to the source files, tailwind.config.js
will not be able to scan them to generate CSS classes.
But I need to achieve this. I am quite new to NuGet packages. Is there any way?
Thanks