Skip to content

Instantly share code, notes, and snippets.

@gravitano
Forked from JeffreyWay/gulpfile.js
Created January 30, 2014 17:30
Show Gist options
  • Save gravitano/8714013 to your computer and use it in GitHub Desktop.
Save gravitano/8714013 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