Skip to content

Need to add config.assets.debug = true to development.rb file #251

New issue

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

Closed
DogAndCode opened this issue Feb 22, 2023 · 10 comments
Closed

Need to add config.assets.debug = true to development.rb file #251

DogAndCode opened this issue Feb 22, 2023 · 10 comments
Labels
needs-more-info Further information is needed to unblock

Comments

@DogAndCode
Copy link

Hi, I have to add config.assets.debug = true to development.rb file because if not all the changes made on application.tailwind.css file dont work, like for example:

@layer base { a { @apply text-red-500 underline }

@DogAndCode DogAndCode changed the title Need to add config.assets.debug = true to development.rb file Need to add config.assets.debug = true to development.rb file Feb 22, 2023
@flavorjones
Copy link
Member

@DogAndCode Can you explain a bit more about what you're experiencing, so that I can try to reproduce it? The tailwind asset pipeline works fine for me in development regardless of this setting, so I need to understand what's different about your setup. (I'm using a vanilla Rails app after running bin/rails tailwindcss:install.)

@DogAndCode
Copy link
Author

DogAndCode commented Feb 22, 2023

Hi @flavorjones, sure, I'm using on my app:

  • Ruby 3.2.1
  • Rails 7.0.4.2
  • Tailwindcss-rails

I was having a problem. If I use the inline css on my *html.erb files it works correctly, but if I try to, instead of inline css, add base styles on @layer base It doesn't work (no changes were made, it was using the inherit style from /builds/tailwind.css ) unless I add config.assets.debug = true to development.rb.

This works:

<h1 class="font-bold text-4xl text-blue-500">Hello!</h1>

This doesn't (unless I set config.assets = true)

@layer base { h1 { @apply font-bold text-4xl text-blue-500; } }

@bijanrich
Copy link

I have the same issue. if I don't set this flag, styles that I'm specifying aren't appearing in the built tailwind.css file in development.

@geetfun
Copy link
Contributor

geetfun commented Apr 15, 2023

Can also confirm that this was the case on my M1 Pro MBP.

FWIW, I have the same project set up on a Ubuntu 22.04 laptop, and this did not seem to be affected on that platform.

@reeganviljoen
Copy link

@geetfun I am having both of the above issues with a cleanly installed example on linux mint 20

@dlim87
Copy link

dlim87 commented Jun 1, 2023

I can confirm this is also happening on WSL running on Ubuntu 22.04.2 LTS

@flavorjones
Copy link
Member

Can someone please set up a gist or repo that reproduces what you're seeing? As I mentioned above, I need help to reproduce and diagnose the issue.

@flavorjones flavorjones added the needs-more-info Further information is needed to unblock label Jun 2, 2023
@truongduyng
Copy link

truongduyng commented Jun 18, 2023

I have the same issue. if I don't set this flag, styles that I'm specifying aren't appearing in the built tailwind.css file in development.

I have the same issue. It had no errors but only generated some styles not all what I used in my views. Im using rails 7.0.5. And not it is a problem from there or from this gem

@reeganviljoen
Copy link

reeganviljoen commented Jun 18, 2023

With a new app generated yesterday I am not experiencing this issue

@flavorjones
Copy link
Member

Closing. If someone is having this issue, then please open a new issue with instructions on how to reproduce it.

@flavorjones flavorjones closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info Further information is needed to unblock
Projects
None yet
Development

No branches or pull requests

7 participants