Magento2 – Custom Module’s _module.less File Not Updating

cachefrontendlessmagento2

In a custom module I've created I'm using a _module.less file in it. At first it worked but any changes I make to it are not updating on the frontend.

I think it must be a cache issue but so far everything I've tried to fix it has not worked:

php bin/magento setup:upgrade; php bin/magento setup:di:compile;
php bin/magento cache:clean; php bin/magento setup:static-content:deploy;
rm -rf var/cache/; rm -rf var/generation/

I'm working in developer mode.

Any ideas?

UPDATE

I checked Less files in custom modules but unfortunately this does not answer my question. It explains how to use LESS in a custom module but not how to troubleshoot the issue I am having with the cache other than what I've tried already (see above).

Best Answer

Try:

$ rm -rf var/cache/* var/full_page/* var/generation/* var/view_preprocessed/* pub/static/* 

This way Magento recompiles less files and also deploy all needed files again.

Related Topic