Less styles are not compiling to css in style component | Community
Skip to main content
Level 2
May 3, 2022

Less styles are not compiling to css in style component

  • May 3, 2022
  • 1 reply
  • 1182 views

I have created a styled component but my less files are not compiling to css and added to the site.
I have created components in apps/training2/components/structure/title


Than i have added my component styles to clientllibs-compnents/heading/css/style.less

css.txt

#base=css

style.less

 

Adding categories properties to my

clientibs-components/heading with below value

training2.components.heading

 

I have also embed properties to my

clientlibs-site with the same value  raining2.components.heading

 

The issue I am facing here is my .less files are not compiled into .css and appear into front end.
can any see if I am missing anything here.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

arunpatidar
Community Advisor
Community Advisor
May 3, 2022

Hi,

Check the errors in less fine. could be an issue with compilation.

Go to /libs/granite/ui/content/dumplibs.rebuild.html and invalidate the cache and rebuild the libs

Hope this will help

Arun Patidar
sonivAuthor
Level 2
May 3, 2022

Thanks for taking to reply. I have seen this sort of reply as well. but i dont find this file in my system.

 

I am not sure how can i rebuild the libs. Can you please advise.

 

Thanks.

arunpatidar
Community Advisor
Community Advisor
May 4, 2022
Arun Patidar