Created
February 18, 2014 11:53
-
-
Save alfredbez/9069554 to your computer and use it in GitHub Desktop.
gulp: livereload basic setup
This file contains hidden or 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 sass = require('gulp-ruby-sass'); | |
var prefix = require('gulp-autoprefixer'); | |
var livereload = require('gulp-livereload'); | |
var watch = require('gulp-watch'); | |
gulp.task('default', function () { | |
gulp.src('sass/app.scss') | |
.pipe(watch()) | |
.pipe(sass({style: 'compact'})) | |
.pipe(prefix("last 2 version", "> 1%", "ie 8")) | |
.pipe(gulp.dest('dist')) | |
.pipe(livereload()); | |
gulp.src('*.html') | |
.pipe(watch()) | |
.pipe(livereload()); | |
}); |
This file contains hidden or 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
{ | |
"name": "site", | |
"dependencies": { | |
"express" : "~3.4.7", | |
"gulp" : "~3.6.2", | |
"gulp-ruby-sass" : "~0.5.0", | |
"gulp-autoprefixer" : "~0.0.7", | |
"gulp-livereload" : "~1.1.1", | |
"gulp-util" : "~2.2.0", | |
"gulp-watch" : "~0.5.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment