gulp-sass-glob-use-forward

0.1.3 • Public • Published

gulp-sass-glob-use-forward

gulp task to allow importing directories in your SCSS using @use and @forward.

Similar to gulp-sass-glob-import but supports @use and @forward instead.

installation

npm install --save-dev gulp-sass-glob-use-forward

usage

in your .scss file

@forward "some/path/*";

// becomes
// @forward "some/path/file1.scss";
// @forward "some/path/file2.scss";
// ...

@use "some/path/*";

// becomes
// @use "some/path/file1.scss";
// @use "some/path/file2.scss";
// ...

@use "some/path/*" as *;

// becomes
// @use "some/path/file1.scss" as *;
// @use "some/path/file2.scss" as *;
// ...

in your gulpfile

var bulkSass = require('gulp-sass-glob-use-forward');

gulp.task('css', function() {
    return gulp
            .src(srcDir + 'stylesheets/app.scss')
            .pipe(bulkSass())
            .pipe(
                sass({
                    includePaths: ['src/stylesheets']
                }))
            .pipe( gulp.dest('./public/css/') );
});

Package Sidebar

Install

npm i gulp-sass-glob-use-forward

Weekly Downloads

382

Version

0.1.3

License

MIT

Unpacked Size

8.17 kB

Total Files

13

Last publish

Collaborators

  • jakerambo