Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gulp node-bourbon issue #36

Open
marcianosr opened this issue Oct 20, 2016 · 3 comments
Open

Gulp node-bourbon issue #36

marcianosr opened this issue Oct 20, 2016 · 3 comments

Comments

@marcianosr
Copy link

marcianosr commented Oct 20, 2016

Hi,

I'm trying to use bourbon, but I ran into some issues. I'm resolving my paths via the gulp-sass package (includePaths) to my bootstrap and bourbon. Bootstrap works, but somehow I can't get it to work with Bourbon. It doesn't get imported in my css files. I do not get any helpful error messages either.
To test if it was the bourbon packages I tried to include normalize.css alone (not the inbuild one of bootstrap), and and I got normalize.css working, so it has to be something with bourbon?

This is how I try to access bourbon:

includePaths: [ "./node_modules/bootstrap-sass/assets/stylesheets/", require('node-bourbon').includePaths, require('node-normalize-scss').includePaths ]
I import it in my main.scss file with @import 'bourbon';.

Does someone know what to do to fix this?
Thanks!

@marcianosr marcianosr changed the title Gulp nod bourbon issue Gulp node-bourbon issue Oct 20, 2016
@iamlacroix
Copy link
Member

require('node-bourbon').includePaths returns an array, so you would want to handle it along the lines of:

includePaths: [].concat(
  './node_modules/bootstrap-sass/assets/stylesheets/',
  require('node-bourbon').includePaths,
  require('node-normalize-scss').includePaths
)

@marcianosr
Copy link
Author

marcianosr commented Oct 22, 2016

Still not got it working, even with your answer... It's including normalize and bootstrap perfectly but it does not with bourbon. Even giving the path manually
includePaths: [].concat( './node_modules/bootstrap-sass/assets/stylesheets/', './node_modules/bourbon/app/assets/stylesheets/', require('node-normalize-scss').includePaths )
does not seem to work.
Any ideas :/ ?

Thanks

@yeralin
Copy link

yeralin commented Oct 28, 2016

require('node-bourbon').includePaths,
require('node-normalize-scss').includePaths[1]

You are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants