Spina hooks into your main app's
assets:precompile task and adds the following steps:
Spina plugins can add paths to the
Spina.config.tailwind_content array which is then added to the Tailwind configuration file. This setup ensures that your Tailwind build always includes all classes needed when precompiling assets in production.
If you're developing a Spina plugin, you can use the
rails spina:tailwind:build and
rails spina:tailwind:watch tasks to generate new builds locally.