Skip to content

Instantly share code, notes, and snippets.

@fitsum
Created January 22, 2015 17:28
Show Gist options
  • Save fitsum/c27cb1562800434d6e24 to your computer and use it in GitHub Desktop.
Save fitsum/c27cb1562800434d6e24 to your computer and use it in GitHub Desktop.
basic gulp w/ gulp-connect
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