gulp-sass-packager
v0.0.5
Published
Dynamically imports sass files into one sass file with passed in a config object
Downloads
3
Readme
Gulp Sass Packager
Dynamically imports sass files into one sass file with passed in a config object
var sassPackager = require('gulp-sass-packager');
gulp.task('sass', function () {
return gulp.src(['app/scss/**/*.scss'])
.pipe(sassPackager({
packageJSON: './sass-config.json'
}))
.pipe(gulp.dest('/css'))
});
Example of a config object
{
"components": {
"scss/file1": true,
"scss/file2": true,
"scss/feature/file10": true,
"scss/feature/file11": false,
"scss/feature/file14": true,
"scss/file4": true
}
}