Try to modify a theme and have it automatically compile, but it did not compile. Also did not compile using the Tools extension compile option. It has occasionally worked. Does anybody know why this is?
I would also be interested to know how Shopware keeps track of the latest version of a theme. I know there is a theme table and some config files, but how do the theme_config and asset functions get the correct theme?
Thanks.
Shopware only overrides the all.css if the new all.css was created. Else it keeps the old all.css.
If it does not compile, I guess there is a SCSS or CSS error, missing { } or ;, something like that. But you should see such a error in the error message (and log).
Thanks for your reply.
There are no errors in the log and in fact when compiling with Frosh Tools there is a message that the theme was successfully compiled, but there are no output files in public/theme and the changes don’t appear on the website.
The site was copied from a local machine to the host server with update to the url in the .env files. Everything worked on the local machine.
In config/packages there could be config files which set the url for assets. If this url is wrong, CSS is not loaded. Maybe check all yaml files.