Posts

Showing posts from October, 2021

How to build hybris storefront less file without server restart

Image
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