Skip to content

Instantly share code, notes, and snippets.

@dammyammy
Forked from JeffreyWay/gulpfile.js
Created March 26, 2014 19:33
Show Gist options
  • Save dammyammy/9791398 to your computer and use it in GitHub Desktop.
Save dammyammy/9791398 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