We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
答案如下:
https://github.com/leafo/lessphp
目前没有其他办法。
Here's the answer:
https://github.com/leafo/lessphp
There's no other way for the moment.
如果您想要完全免提的 LESS 编译,请尝试 Relayer:
http://relayer.co
它是免费的,并且使用起来非常简单。
If you want completely hands-free LESS compiling, try Relayer:
http://relayer.co
It's free and very simple to use.
您可以使用 PhpLessDemandBridge
您可以简单地在模板中使用它,例如:
引擎可以通过以下方式配置配置文件,您可以在其中定义 less 文件和缓存文件的路径。
通过定义“css.php?file=bootstrap.less”,您将引擎指向 bootstrap 文件,该文件导入其他 less 文件,例如 Twitter Bootstrap 等。
我将其用于 Magento、TYPO3 CMS 等。
在第一行中,我包含了 Twitter Bootstrap 所需的部分 - 之后我包含了我自己的主题和覆盖。
You can use PhpLessDemandBridge for that
You can simply use it in your Templates, like:
The Engine can be configured via config file, where you define your path to the less files and cache files.
By defining "css.php?file=bootstrap.less", you point the Engine to the bootstrap file, which imports other less files e.g. Twitter Bootstrap or such.
I am using this for Magento, TYPO3 CMS and many more.
In the first line, i am including needed parts of Twitter Bootstrap - after that i am including my own theme and overrides.
好消息!对于这种情况,我们有新的 Less 编译器:
https://github.com/wikimedia/less.php
它没有命名空间问题,并且很容易添加和使用。
Good news! We have new Less compiler for this case:
https://github.com/wikimedia/less.php
It has no namespace issues and is easy enough to add and use.