Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 621 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 621 Bytes

gulp-sass-glob

Gulp plugin for gulp-sass to use glob imports.

Install

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

Basic Usage

main.scss

@import "vars/*";
@import "mixins/*";
@import "../views/*";
@import "../components/*";

gulpfile.js

var gulp = require('gulp');
var sass = require('gulp-sass');
var sassGlob = require('gulp-sass-glob');

gulp.task('styles', function () {
    gulp
        .src('src/styles/main.scss')
        .pipe(sassGlob())
        .pipe(sass())
        .pipe(gulp.dest('dist/styles'));
});