简体   繁体   English

如何配置Derby.js应用程序以使用LESS CSS引擎?

[英]How do I configure my Derby.js application to use the LESS CSS engine?

According to the Derby blog and this pull request , Derby.js has supported the LESS engine since version 0.3.1. 根据Derby博客和这个拉取请求 ,Derby.js从版本0.3.1开始就支持LESS引擎。 However, I can't figure out where I'm supposed to set the configuration option to switch it from Stylus in my code. 但是,我无法弄清楚我应该在我的代码中设置配置选项以从Stylus切换它。 I feel like it needs to happen with a derby.use call in my lib/server/index.js file, but there's nothing about it listed in the documentation that I've seen other than that it is possible. 我觉得它需要在我的lib/server/index.js文件中使用derby.use调用,但是除了可能的文档之外,我没有看到它在文档中列出的内容。

I'd just use Stylus, but I'm trying to Columnal, which doesn't compile in Stylus. 我只是使用Stylus,但我正在尝试Columnal,它不能在Stylus中编译。 How can I configure the application to use LESS? 如何配置应用程序以使用LESS?

There is no configuration option to set, it's all transparent. 没有设置的配置选项,它们都是透明的。 Just start using .less files in your styles directory. 只需在styles目录中开始使用.less文件即可。

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

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