gulp sass includePaths for easy css libs import
See original GitHub issuehad 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:
- Created 4 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m glad it helps.
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!