While working on a custom theme with blank parent theme , I noticed strange behaviors: First of all, gulp and grunt give a different output. Mostly these are parts of code in different order (on gulp's output, the parts are below to grunt's output). Also, comparing only these code parts, there are differences. (see here) With the help of sourcemaps it would seem that the code comes from
"pub / static / frontend / vendor / theme / en_US / css / source / _extends.less"
This comes from the default blank theme. Normally, Magento uses "_extend.less" files for less instructions extending existing styles. But why use "_extends.less"? I noticed it existed only in this position and only on the blank theme.
The styles-l.less load this file like this:
@import (reference) 'source / _extends.less';
Is there a particular reason for its use?
Removing extends.less from blank theme, gulp's output and grunt's output are the same.
A possible workaround could be to remove the extends.less file and then have the same result with both.
However, there is still a doubt as to why this file was inserted (and why in this way).