Created
January 22, 2015 17:28
-
-
Save fitsum/c27cb1562800434d6e24 to your computer and use it in GitHub Desktop.
basic gulp w/ gulp-connect
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'), | |
connect= require('gulp-connect'); | |
gulp.task('connect',function(){ | |
connect.server({ | |
root: './', | |
livereload: true, | |
port: 9999 | |
}); | |
}); | |
gulp.task('reload',function(){ | |
gulp.src('./*.html') | |
.pipe(connect.reload()); | |
}); | |
gulp.task('watch', function(){ | |
gulp.watch('./*.html',['reload']); | |
}); | |
gulp.task('default',['connect','watch']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment