とを使用_module.lessしてテーマを拡張するのに違いはあります_extend.lessか?モジュール/テーマを拡張するときのベストプラクティスは何ですか?
私が最初に考えたのは_module.less、新しいモジュールをスタイリングするとき、および_extend.lessモジュールを拡張するときに使用する方が良いということでした。しかし、Lumaは_module.less、空白のテーマを拡張するときに、理論が窓から外れるようにするために使用します。
それらの間で私が見ることができる唯一の違い_module.lessは、レスポンシブライブラリの前にインポートされることと_theme.less、as _extend.lessがそれらの後にインポートされることです。
これがインポートされる順序です vendor/magento/theme-frontend-blank/web/css/styles-l.less
//
//  Blank theme desktop styles
//  _____________________________________________
//  These desktop styles are added to mobile
//
//  Global lib + theme styles
//  ---------------------------------------------
@import '_styles.less';
@import (reference) 'source/_extends.less';
//
//  Magento Import instructions
//  ---------------------------------------------
//@magento_import 'source/_module.less'; // Theme modules
//@magento_import 'source/_widgets.less'; // Theme widgets
//
//  Media queries collector
//  ---------------------------------------------
@import 'source/lib/_responsive.less';
@media-target: 'desktop'; // Sets target device for this file
@media-common: false; // Sets not to output common styles
//
//  Global variables override
//  ---------------------------------------------
@import 'source/_theme.less';
//
//  Extend for minor customisation
//  ---------------------------------------------
//@magento_import 'source/_extend.less';