-
-
Save dammyammy/9791398 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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