lacroixdesign / node-bourbon

A node-sass port of Bourbon.
http://lacroixdesign.github.io/node-bourbon
Other
148 stars 14 forks source link

Using bourbon with grunt and grunt-sass #20

Open landed1 opened 9 years ago

landed1 commented 9 years ago

I am a little confused as to if I need to include in two places to get the bourbon scss files included into my final css

I am using https://github.com/sindresorhus/grunt-sass (grunt-sass) and this is saying it is working but I am not getting any code in my final core.css file.

includePaths: require('node-bourbon').with('node_modules/node-bourbon/node-modules/bourbon/app/assets/stylesheets/_bourbon.scss')

Do I need to do an include also in my scss base file ? If I do the includePaths seems then redundant. Thanks

landed1 commented 9 years ago

I have manually included the bourbon scss file like I would have done for other libs @import "../../node_modules/node-bourbon/node_modules/bourbon/app/assets/stylesheets/bourbon";

not sure if this is correct - and the reason I may not have been getting any output is because bourbon itself doesn't add any css - its purely mixins etc...think I'm right in saying this and I could see if I added css it was then added to my file...

As to why the standard install way bower (which is kind of a standard) wont allow the @import "bourbon/bourbon"; to ever work.

iamlacroix commented 9 years ago

Hey sorry I missed this issue. You would only need to include it once in your Grunt config's options:

options: {
  includePaths: require('node-bourbon').includePaths
}