1.1.2 • Published 8 years ago
gulp-sass-bundler v1.1.2
Installation:
$ npm install gulp-sass-bundler
Usage
gulp.task('bundle-sass', function(){
/**
* This will create _participles.scss file with @import's of
* all scss files found in desired folders
* the bundler will skip scanning the targetImportFolder
* -1 : import single file (Good for importing import files)
* 0: import all _*.scss files in current folders
* 1: search all directories 1 deep and import all _*.scss in those folders
* 2: search all directories in subdirectories and import all _*.scss in those folders
*/
sassBundler({
dirs: [
{path: 'www/lib/ionic/scss/ionic', depth: -1},
{path: 'scss/shared', depth: 0},
{path: 'scss/shared', depth: 1},
{path: 'scss/shared', depth: 2},
{path: 'scss/app', depth: 0},
{path: 'scss/app', depth: 1},
{path: 'scss/app', depth: 2}
],
targetImportsFolder : 'scss/build',
targetImportsFile: '_participles.scss',
debug: true
});
});
search level: zeroLevel
To import: scss/shared/_variables.scss search level: oneLevel To import: scss/shared/commons/_common.scss To import: scss/shared/commons/_icons.scss search level: twoLevels To import: scss/shared/commons/elements/_buttons.scss To import: scss/shared/commons/elements/_input.scss To import: scss/shared/commons/elements/_lists.scss To import: scss/shared/commons/elements/_nav.scss To import: scss/shared/commons/elements/_popup.scss search level: zeroLevel To import: scss/app/_variables.scss search level: oneLevel search level: twoLevels