Node-sass无法findCompass导入

有没有可能使用指南针节点sass? 看来node-sass不知道如何导入Compassfunction。

{ "formatted": "Error: File to import not found or unreadable: compass/css3/box- shadow\n Parent style sheet: C:/sandbox/sascar-manager/app/assets/styles/s ass/project/login.scss\n on line 1 of sass/project/login.scss\n>> @import \"compass/css3/box-shadow\";\n ^\n", "message": "File to import not found or unreadable: compass/css3/box-shadow\nP arent style sheet: C:/sandbox/app/app/assets/styles/sass/project/logi n.scss", "column": 1, "line": 1, "file": "C:/sandbox/app/app/assets/styles/sass/project/login.scss", "status": 1 } 

Compass是sass mixin和函数的集合,还有一些Ruby的扩展。 Node-sass使用libsass库,所以Ruby扩展将不起作用。 但是,您将能够使用该项目使用大多数Compassfunction。

另一个select是使用波旁而不是指南针。 它具有非常相似的一套mixin直接可用作npm包。

另请参阅这个相当类似的问题。

我自己也想过这个。 我相信在谈到ruby指南针的时候,答案是“不”,但是至less有一些可能的select是值得研究的。

链接到github上的眼镜和指南针节点

我没有仔细地看过他们,给你一个肯定的答案,但罗盘节点可能是指向波旁的节点,是图书馆的节点。

Interesting Posts