Skip to content

Commit

Permalink
Added sync documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Snugug committed Mar 26, 2015
1 parent 0d52eb3 commit 7684cf1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ npm install gulp-sass --save-dev

# Basic Usage

Something like this:
Something like this will compile your Sass files:

```javascript
var gulp = require('gulp');
Expand All @@ -24,6 +24,20 @@ gulp.task('sass', function () {
});
```

You can also compile synchronously, doing something like this:

```javascript
var gulp = require('gulp');
var gutil = require('gulp-util');
var sass = require('gulp-sass');

gulp.task('sass', function () {
gulp.src('./scss/*.scss')
.pipe(sass.sync().on('error', sass.logError))
.pipe(gulp.dest('./css'));
});
```

## Options

Pass in options just like you would for [`node-sass`](https://github.com/sass/node-sass#options); they will be passed along just as if you were using `node-sass`.
Expand Down

0 comments on commit 7684cf1

Please sign in to comment.