I have custom theme in ..../design/frontend/MyVendor/my-theme folder. My main less file is in design/frontend/MyVendor/my-theme/web/css/my-main.less. Content of the main less file:
@import './source/_module.less';
Location of _module.less file is in the folder
design/frontend/MyVendor/my-theme/web/css/source/_module.less
Contents of _module.less:
@import 'module/_cart.less';
@import 'module/_minicart.less';
@import 'module/_checkout.less';
The way I include my main less file is in default_head_blocks.xml:
<head>
<link rel="stylesheet/less" type="text/css" src="css/my-main.less" />
......
The file is included, no errors anywhere, run the fallowing commands:
magento cache:flush
rm -rf pub/static
rm -rf var/cache
rm -rf var/page_cache
rm -rf var/view_processed
bin/magento setup:static-content:deploy -f
both
magento cache:flush & bin/magento setup:static-content:deploy -f
run without ANY errors. Still, the changes I made in module/_minicart.less are no presented when I refresh the page. What is the problem?