How to build hybris storefront less file without server restart





In the Hybris if you need to change the style you need to deal with .less files. .less file need to compile to .css then only you can see the changes applied to your storefront. Generally, hybris build (ant clean all) will take care of .less compilation. But if you are frequently dealing with .less files and you want to build it without restarting/building the platform. You can use the below ant command.

1) Open another CMD/Terminal at your platform directory (you don't need to stop your current running server)
2) Now set ant environment using setantenv.bat
3) Compile your storefront ant <yourstorefrontextension>_compileuisrc
    e.g. ant mystorefront_compileuisrc

Author Image

Ankitkumar Patel

Sr. SAP Hybris consultant, having 15+ years experience in SAP Commerce Cloud (Hybris), SAP Spartacus. Extensive experience in SAP Hybris development, third-party integrations, project architecture and design... Read more

Comments

Popular posts from this blog

Hybris flexible search query examples

How to Install temporary Hybris license?

How to remove or update all data records in Hybris?