I'm trying to understand exactly how / when LESS files get compiled and unfortunately I'm not much further than what I started.
I tried installing grunt, but I'm having all kinds of permission problems...but that's kind of a separate issue. Even if I have to run all the commands necessary manually that's ok, even though it's kind of inefficient.
From all the documentation I've read, it seems like the following should compile LESS but it doesn't seem to be working:
Clear out pub/static, var/view_preprocessed, var/generation
Creating symlinks to LESS files using
bin/magento dev:source-theme:deploy --type=less --locale=en_US --area=frontend --theme=MyVendor/mytheme
Deploying static view files using
bin/magento setup:static-content:deploy
I think that should be it, but maybe I'm missing something. Doing the above does not get the _custom.less file I created compiled into the correct file (styles-m.css in this case).
The only way I can get it to work, is to change the mode from developer to production w/ compilation on (which errors, but again separate issue).
Something in the compilation process is getting the CSS from my LESS file and compiling it, but that seems to be the only thing that works.
I have a decent amount of experience w/ Magento 1.9 and below and I'm getting to the point where I might do the project using that vs. Magento 2.1. I've already lost a lot of time just trying to figure out how to make simple CSS changes.
Any help would be greatly appreciated.