I'm working on a Magento 2.3.4 website that has a custom theme, developed by a different party. I need to modify some .less files and I noticed something strange.
grunt exec, that should publish the symlinks to
pub/static/frontend generates the same results as running
bin/magento setup:static-content:deploy. By the same results I mean that the rendered page looks the same after a
grunt exec as it does after the native Magento command.
However, if I run
grunt less after the grunt exec, the page renders completely differently. Styles that were not applied before are suddenly applied. This lets me modify styles that I otherwise can't – because just running
grunt exec does not pick up those changes –, but it also results in the site looking completely different than in production.
Does anyone have any idea what could be going on?