question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gulp sass includePaths for easy css libs import

See original GitHub issue

had to modify this line

.pipe(sass().on("error", sass.logError)) to this .pipe(sass({includePaths: 'node_modules'}).on("error", sass.logError))

to be able easy import bootstrap

@import 'bootstrap/scss/bootstrap';

might want to add it to your tutorial how to switch to sass

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
luangjokajcommented, Jan 27, 2020

I’m glad it helps.

1reaction
adallaserracommented, Jan 27, 2020

Valid point! I think it may have been my own error in switching from post to sass! I hadn’t tested prod, but only dev.

Ps: while I’m here, may I take the opportunity to thank you for this environment you created—you’ve saved me a LOT of time and it’s really smooth!

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does Gulp's includePaths do? - sass - Stack Overflow
I want to compile Sass with Gulp. This is a simple styles task setup that I've found in one of the tutorials: var...
Read more >
IncludePath not working in current version · Issue #668 - GitHub
Error: File to import not found or unreadable: '..' Note: It's works with node-sass 4.7.2 version. var sass = require('gulp-sass'); ...
Read more >
LegacyFileOptions | JS API - Sass
Each custom importer. Loading a file relative to the current working directory. Each load path in includePaths. Each load path specified in ...
Read more >
dlmanning/gulp-sass - Gitter
Hi! I've an issue with this simple task. My issue is that from the console the task ends immediatly (~15ms) without creating any...
Read more >
Discovering Hugo: Part 2 - Customizing the Workflow
gulp -sass takes care of processing our SASS into CSS ... Note: I added node_modules into my includePaths so I can easily include...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found