I am using background images in my css, which, obviously, requires writing URLs in the css file.
So, while the relative path might be the same, the base URL will be different between development and production.
So, is there a better solution than:
1. changing it each time manually
2. using resources on the cloud with full URL
3. making the CSS files parsed as PHP, and using some
code in it (and then I have to fix the problem with caching).
I am using background images in my css, which, obviously, requires writing URLs in
Share
CSS URLs are parsed from the directory containing the CSS. Meaning it won’t change. So all you should have to do is give them paths relative to the CSS Directory and you should be good.
CSS/main.css