简体   繁体   English

如何在Adobe CQ5中使用.less文件?

[英]how to use .less files in adobe CQ5?

i'm new in Adobe CQ5, and developing CMS Application using this, i create ClienLibraryFolder in following directory: 我是Adobe CQ5的新手,并且正在使用它开发CMS Application,我在以下目录中创建ClienLibraryFolder:

/etc/designs/MySiteName/ClientLibFolder/MyLess.less

but when i'm using this on .jsp file it is not design anything what i defined in .less file, while using .css files i'm getting all things. 但是当我在.jsp文件上使用它时,它没有设计我在.less文件中定义的任何内容,而在使用.css文件时,我却得到了所有东西。 can anyone suggest me what i'm missing here 谁能建议我我在这里想念的东西

I assume you have added the MyLess.less to the css.txt in /etc/designs/MySiteName/ClientLibFolder. 我假设您已将MyLess.less添加到/ etc / designs / MySiteName / ClientLibFolder中的css.txt中。

The next step would be to ensure the OSGI bundle is running which compiles the less file. 下一步将是确保OSGI捆绑包正在运行,该捆绑包会编译较少的文件。 For information on where the bundle is located you can refer to this blog post http://www.citytechinc.com/us/en/blog/2012/08/less_css_in_adobecq.html 有关捆绑包位置的信息,请参阅此博客文章http://www.citytechinc.com/us/en/blog/2012/08/less_css_in_adobecq.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM