I am attempting to start using Bourbon and Neat Sass libraries in my project. I want to compile Sass with Gulp. This is a simple styles
task setup that I've found in one of the tutorials:
var gulp = require('gulp'),
sass = require('gulp-sass'),
neat = require('node-neat').includePaths;
var paths = {
scss: './assets/styles/*.scss'
};
gulp.task('styles', function () {
return gulp.src(paths.scss)
.pipe(sass({
includePaths: ['styles'].concat(neat)
}))
.pipe(gulp.dest('./dist/styles'));
});
gulp.task('default', function () {
gulp.start('styles');
});
Then in the main .scss
file I place the imports:
@import "bourbon";
@import "base/base";
@import "neat";
This task executes correctly.
What puzzles me here is what includePaths
does exactly?
Base on the example above, can somebody explain to me what includePath
's role is?
neat = require('node-neat').includePaths;
,includePaths: ['styles'].concat(neat)
– Frenchy