Skip to content

Instantly share code, notes, and snippets.

@joycse06
Forked from JeffreyWay/gulpfile.js
Created January 22, 2014 04:38
Show Gist options
  • Save joycse06/8553560 to your computer and use it in GitHub Desktop.
Save joycse06/8553560 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var minifycss = require('gulp-minify-css');
var autoprefixer = require('gulp-autoprefixer');
var notify = require('gulp-notify');
var sass = require('gulp-ruby-sass');
gulp.task('css', function() {
return gulp.src('sass/main.sass')
.pipe(sass({ style: 'compressed' }))
.pipe(autoprefixer('last 15 version'))
.pipe(gulp.dest('css'))
.pipe(notify({ message: 'All done, master!' }));
});
gulp.task('default', function() {
gulp.run('css');
gulp.watch('sass/**/*.sass', function() {
gulp.run('css');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment