We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is just to help others that might be wondering why they're missing styles after upgrading to Rails 7.
If you're using tailwindcss-rails with Rails 7, you need to specify how to find the CSS classes tailwindcss-stimulus-components uses (e.g. the ones in modal).
Here's what you need to do:
bin/importmap pin tailwindcss-stimulus-components --download
vendor/javascript
module.exports = { content: [ './app/helpers/**/*.rb', './app/javascript/**/*.js', './app/views/**/*', './app/lib/form_builder.rb', './vendor/javascript/tailwindcss-stimulus-components.js' ], }
That's it! All the tailwind classes that this library uses will now be included in your Rails app.
The text was updated successfully, but these errors were encountered:
I was poking around for a solution as well, it seems reasonable to use safelisting as well:
https://stackoverflow.com/questions/70597881/exclude-a-class-being-tree-shaken-by-tailwind
Sorry, something went wrong.
No branches or pull requests
This is just to help others that might be wondering why they're missing styles after upgrading to Rails 7.
If you're using tailwindcss-rails with Rails 7, you need to specify how to find the CSS classes tailwindcss-stimulus-components uses (e.g. the ones in modal).
Here's what you need to do:
bin/importmap pin tailwindcss-stimulus-components --download
vendor/javascript
to your tailwind config:That's it! All the tailwind classes that this library uses will now be included in your Rails app.
The text was updated successfully, but these errors were encountered: