I'm having a little trouble compiling the CSS in Magento 2. I'm well versed in the ways of Magento 1x but I've only worked a little in M2, so I apologise.
When experimenting with M2 I managed the CSS just fine, but the site I'm using in particular has been worked on by another individual so it's been set up in a different way.
- Magento 2.2.3
- Developer Mode Enabled
- Using built in pre-processor
- Theme is a child of Ultimo theme.
- Site is being run locally on wampserver.
So basically the child theme is set up correctly as far as I can see. However when I attempt to change anything (in Vendor/theme/web/css/_custom.less) it doesn't update at all.
I clear the cache, remove the pub/static folder (being careful with the .htaccess), run
php bin/magento setup:static-content:deploy
-f (I know that's not needed in developer mode but hey) and clear the preprocessed folder. None of these when run individually update my CSS with the changes made.
I stumbled across this post : Magento2 changes not deployed which tells me to run
rm -rf var/page_cache/* var/view_preprocessed/* var/generation/* var/cache/* pub/static/*. After about 2 mins of waiting, my CSS finally updates! This is great but I don't fancy quadrupling my workflow time every time I need to change some CSS.
I've tried running each command individually but no updates are made. In fact, if I remove the
styles-l.css, the file gets regenerated but without the updates!!
I should also mention that any changes I do to template files update just fine - no deployment needed.
Please can anyone advise me what I could or could not have configured? The staging site works just fine as does the version on my colleague's machine.