In the Magento 2 lib documentation it contains the following:
@media-common: true|false - sets whether to output common styles. For common styles every time you want to add some styles you should use
& when (@media-common = true) {
your styles
}
Question
What determines when these blocks are processed?
While working in a module's less file e.g. _module.less, It seems to be ignored if I trust either grunt watch
, or run grunt less
manually, unless I first run bin/magento setup:static-content:deploy
Changing between the production ( with or without the --skip-compilaiton flag) and developer deploy modes seems to make no difference.
This isn't ideal as setup:static-content:deploy is very slow and disrupts the workflow.