如何使手写笔包含导入 CSS 的内容而不是生成 CSS 导入语句?

How to make stylus to include content of imported CSS instead of generating CSS import statement?

Stylus .styl 文件中的 @import "reset.css" 将在 CSS 中生成 @import "reset.css" 条目。

有没有办法让 Stylus 包含包含的 CSS 文件的内容?

是的,您可以在 stylus.render 函数的选项参数中指定它,例如

stylus.render(inputString, {'include css': true}, cb)