j_d
j_d

Reputation: 3082

Node-sass includePaths in command line?

So I'm setting up a new project, and I want to use Bourbon for scss via npm. This requires doing npm install bourbon, and then somehow piping the path into node-sass at time of compilation.

My current sass script looks like this:

node-sass --output-style compressed -o build/css/ scss/

And the Bourbon docs indicate that I need to do something like:

require("bourbon").includePaths

But how do I do this via the command line?

Upvotes: 6

Views: 7962

Answers (1)

MGR
MGR

Reputation: 286

You need to add bourbon stylesheets with the include-path option in the command line like this (multiline for readability, needs to be on single line in package.json):

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

Upvotes: 10

Related Questions