We've moved discussions to Discord

rake assets:precompile shows an empty application.css

Nicolas Maloeuvre
I fetched the last commits and now I have an issue. I don't know exactly which jumpstart commit introduce the bug, it should be in the last week or 2 weeks I think.

So I use this on my dev machine to generate the assets that are used in production : `RAILS_ENV=production bundle exec rake assets:precompile`

It generates assets in a folder in `public/assets` : css, js, copy all the `assets/icons`, and it generates also the .gz files, and with the digest.

Everything works (js, svg) except one file : application-xxx.css is empty, the file exists but there is nothing in it. trix-xxx.css works, and also administrate/application-xxx/css works, it is just the application that is empty.

Does it work for you?

Here is the terminal output :
RAILS_ENV=production bundle exec rake assets:precompile


the tailwindcss command works, the app/assets/builds/application.css is not empty... but I don't know what is this folder? it is a css but not minified, and I am not sure it is even used in the dev server

Do you know why is my public/assets/application-xxx.css empty? it worked before, and I am bad at understanding the assets things 😅

PS : it works on my development environment, the issue is when I want to push on production, my workflow is to use precompile and rsync the generated public/assets on a distant production server.
Nicolas Maloeuvre
This is the most weird bug I encountered

It is because of the "w-4" class in application_helper.rb in the new `button_text` helper

I am not able to explain why, just letting this here in case anyone have something like this. I tried every commit, every class name, and I found in the end that this is the bug, it is reproducible in my repository

The bug is only in my repository, it is not on jumpstart-pro/jumpstart-pro master so... I don't know

fix-precompiled-bug.png 1.02 MB
Notifications
You’re not receiving notifications from this thread.