gulp-sass-globi
v0.1.0
Published
Gulp plugin for gulp-sass to use glob imports in your sass/scss files
Downloads
155
Readme
WIP
This module is a WIP and neither published to npm nor usable as-is.
About gulp-sass-globi
This started off as a fork of gulp-sass-glob. As some long-standing bugs and feature requests haven't been addressed, I decided to fork the repository and try to develop the plugin further.
Overview
Gulp plugin for gulp-sass to use glob imports.
Install
npm install gulp-sass-globi --save-dev
Basic Usage
main.scss
@import "vars/**/*.scss";
@import "mixins/**/*.scss";
@import "generic/**/*.scss";
@import "../components/**/*.scss";
@import "../views/**/*.scss";
@import "../views/**/*something.scss";
@import "../views/**/all.scss";
NOTE: Also support using '
(single quotes) for example: @import 'vars/**/*.scss';
gulpfile.js
var gulp = require('gulp');
var sass = require('gulp-sass');
var sassGlob = require('gulp-sass-glob');
gulp.task('styles', function () {
return gulp
.src('src/styles/main.scss')
.pipe(sassGlob())
.pipe(sass())
.pipe(gulp.dest('dist/styles'));
});
Troubleshooting
Planned features
- Add support for nested globbing
- Add support for includePaths
Why globi?
Globi is a Swiss cartoon character chosen for this project because of his name's remarkable resemblance to the term glob. ...And because almost all sensible name choices for such a plugin are gone.