I'm starting a new project using Magento 2.1 and I'm a little confused on how LESS compilation works.
I created a child theme using a purchased theme as the parent. Inside my child theme, I added _custom.less
inside
app/design/frontend/MYVENDOR/MYTHEMENAME/web/css/
.
I cleared out everything from pub/static/
and then deployed static content using
bin/magento setup:static-content:deploy
I'm not sure if that's necessary in developer mode, but I'm running it anyways.
I can't figure out if this is compiling and if it is, where it's going. There's a chance that the CSS I've included to change the background-color of body is being overridden by something else, but even if that's the case I can't find the CSS anywhere in the compiled CSS files.
I'm guessing this should be going into styles-m.css, but I'm really not sure. Is there additional configuration I need to do to tell Magento to include _custom.css when it compiles?
@import '_infortis_theme.less';
Then, inside _infortis_theme.less there is a reference to@import '_custom.less';
So unless I'm completely misunderstanding, it seems like app/design/frontend/MYVENDOR/MYCHILDTHEME/web/css/_custom.less should be compiled into styles-m.css...but maybe I'm missing something.