Node.js 节点sass是否包含命令行中的路径?

Node.js 节点sass是否包含命令行中的路径?,node.js,sass,browserify,bourbon,node-sass,Node.js,Sass,Browserify,Bourbon,Node Sass,所以我正在建立一个新的项目,我想通过npm将波旁威士忌用于SCS。这需要执行npm install bourbon,然后在编译时以某种方式将路径管道化到节点sas中 我当前的sass脚本如下所示: node-sass --output-style compressed -o build/css/ scss/ 这表明我需要做一些类似的事情: require("bourbon").includePaths 但是如何通过命令行实现这一点呢?您需要在命令行中添加带有include path选项的bo

所以我正在建立一个新的项目,我想通过npm将波旁威士忌用于SCS。这需要执行
npm install bourbon
,然后在编译时以某种方式将路径管道化到节点sas中

我当前的sass脚本如下所示:

node-sass --output-style compressed -o build/css/ scss/
这表明我需要做一些类似的事情:

require("bourbon").includePaths

但是如何通过命令行实现这一点呢?

您需要在命令行中添加带有
include path
选项的bourbon样式表,如下所示(为了可读性,需要在
package.json
中的单行上添加多行样式表):

node-sass 
--include-path node_modules/bourbon/app/assets/stylesheets/  
--output-style compressed -o build/css/ scss/