Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
It does work the same. But...
It might not have been deployed.
It might not have been compiled (if you use one of the CSS compositing languages).
It might not have replaced the old version in server/proxy/browser caches.
...
Step 1: Check in browser dev console, whether the browser-visible CSS actually is the (compiled) CSS you have locally on your dev machine. -
Top guesses:
a) Your build-steps that combine-and-minify-css are re-ordering some selectors and the selectors ending up last in your css-file ends up overwriting earlier rules. Or maybe there's some 'smartness' that removes styles not found in your HTML and it's removing some selectors for elements that you add with JS.
c) People are testing prod on a device with a different userAgent stylesheet. -
@iiii Omitting the second point on a list is a great little trick to make people pay attention :D (no, just kidding, I ended up making a mistake and passed the 5 minute edit deadline. Originally A was split into 2 items )
-
Awlex177453y@darkwind Yeah :(
@jiraTicket I just built the css locally and it looks excatly the same :(
My sanity is droping. I got the css to work, but now the most important part of my app just returns a 404 -
@Awlex "I got the css to work" - What was the issue? (Not knowing what the issue was is worse than fixing an issue by accident imo. As it might return later)
-
Awlex177453y@jiraTicket I have no idea, in my desperation I tore down the whole environment and rebuilt it. (Note: this is a hobby project and I don't have any users yet)
Related Rants
Fucking css, why won't you work the same way you did locally when put in production
rant
too tired for this shit
6am
css