7

I install magento2 in my system and its work properly but when i changed in less files then it's not affect in frontend. then how can i compile less files in magento2 for get css effect in frontend.

5
  • You need switch to dev mode or run deploy of static, check this answer magento.stackexchange.com/a/82168/2282 – FireBear Sep 12 '15 at 8:42
  • No, its not solve my problem. – Yogesh Karodiya Sep 12 '15 at 9:40
  • 4
    WHY does it not solve your problem? What is different? Please explain exactly what your problem is, what you expect and what doesn't happen as expected – Fabian Blechschmidt Sep 12 '15 at 11:03
  • @fireBear :- if i have 4 theme and i did the changes in 1st theme and when i do deploy static content it do for all theme it waste of time i have to wait but i need to do for only one theme , in that case how to do it – Pradeep Kumar Feb 24 '16 at 7:51
  • In developer mode: remove the var/view_preprocessed folder and the css file from pub/static/... and just clear the cache. The css will be regenerated. – Zsolti Feb 25 '19 at 20:27
2

This page in the Magento 2 documentation pretty well covers using Grunt to compile less. http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/css_debug.html

2

Not the answer you're looking for? Browse other questions tagged or ask your own question.