[![Build Status](https://travis-ci.org/dlmanning/gulp-sass.png?branch=master)](https://travis-ci.org/dlmanning/gulp-sass) gulp-sass ========= SASS plugin for [gulp](https://github.com/wearefractal/gulp). #Install ``` npm install gulp-sass ``` #Basic Usage Something like this: ```javascript var gulp = require('gulp'); var sass = require('gulp-sass') gulp.task('sass', function () { gulp.src('./scss/*.scss') .pipe(sass()) .pipe(gulp.dest('./css')); }); ``` Options passed as a hash into `sass()` will be passed along to [`node-sass`](https://github.com/andrew/node-sass) ## gulp-sass specific options #### `errLogToConsole` If you pass `errLogToConsole: true` into the options hash, sass errors will be logged to the console instead of generating a `gutil.PluginError` object. Use this option with `gulp.watch` to keep gulp from stopping every time you mess up your sass. #Imports and Partials gulp-sass now automatically passes along the directory of every scss file it parses as an include path for node-sass. This means that as long as you specify your includes relative to path of your scss file, everything will just work. scss/includes/_settings.scss: ```scss $blue: #3bbfce; $margin: 16px; ``` scss/style.scss: ```scss @import "includes/settings"; .content-navigation { border-color: $blue; color: darken($blue, 9%); } .border { padding: $margin / 2; margin: $margin / 2; border-color: $blue; } ```