gulp-sass-partials-imported
It process scss partials files and add the files that import them to the pipe.
Use it with gulp-cached and gulp-sass to create a watch task that avoid the re-compile of all the scss files in the project everytime you save one of them, saving a lot of time.
Install
$ npm install --save-dev gulp-sass-partials-imported
Usage
Just add sassPartialsImported to the pipe
Arguments
scss_dir (string) [required]
Folder where all the scss files are
includePaths (string|Array) [optional]
Path string, or Array of paths, where look in to attempt to resolve your @import declarations. (same as includePaths of node-sass)
Example
In the example below we have a watch
task that, everytime we save a partial file, adds to the pipe all the scss files that @import the partial file.
const gulp = const sass = ;const cached = ;const sassPartialsImported = ; let scss_dir = 'src/scss/';let includePaths = 'src/scss/vendors'; gulp; gulp;
License
MIT © G100g(http://g100g.net) - Davide Cantelli (http://ww.davidecantelli.it)