0

My simple question is that, Do i need to compile less with grunt in magento? My theme is working fine. However i am not sure that i need to compile less with grunt or not. Is there any impact on performance ? Please suggest what is best method ?

2 Answers 2

0

There will be no performance gaps. Official Magento documentation offers this way. More details here: https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/css-topics/css_debug.html

1
  • I assume we dont need to compile as magento automatically compiles it. Then why they provided documentation to compile?
    – Ashar Riaz
    Oct 4, 2019 at 15:37
0

The short answer is no

The longer answer is that you can do although I've experienced some issues using grunt. Grunt is faster and at times gives more meaningful error messages.

The main issue is that it doesnt factor theme inheritance the same way static content deploy does. Which can lead to errors.

So personally I don't recommend using grunt. Certainly nothing beyond development.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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