There seem to be a catch when using `--css tailwind`. When you add the @import at the end of the `application.tailwind.css` file the imported styles are not loading. While if you place them before the @tailwind lines everything works as planned.
I encountered this issue when I tried to add actiontext to a project configured with tailwind css. The actiontext.css file was placed after the @tailwind lines and Trix style was'nt applied.
My configuration: Rails 7.0.1 with tailwind and esbuild Ruby 3.0.3
I try to add in application.sass.scss
@import also
I try to also add it inside of the js
neither work.
any tips here?
using this will load all of them
to `config/initializers/assets.rb` ?
I encountered this issue when I tried to add actiontext to a project configured with tailwind css. The actiontext.css file was placed after the @tailwind lines and Trix style was'nt applied.
My configuration:
Rails 7.0.1 with tailwind and esbuild
Ruby 3.0.3
For me, this works in development, however, the fonts aren't displayed correctly when deployed to Heroku.
Do you know the correct path to use in manifest.js when importing fontawesome into application.tailwind.css?
I think I’ll try using tailwind with postcss and see how I go.
Add this to config/initializers/assets.rb:
And then set the FontAwesome font-path sass variable to: