Skip to content

Instantly share code, notes, and snippets.

@chris-ramon
Forked from x2764tech/gulpfile.js
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save chris-ramon/9a4ac262da19831a4a8a to your computer and use it in GitHub Desktop.

Select an option

Save chris-ramon/9a4ac262da19831a4a8a to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var livereload = require('gulp-livereload');
var watch = require('gulp-watch');
var http = require('http');
var ecstatic = require('ecstatic');
gulp.task('default', function() {
http.createServer(
ecstatic({ root: __dirname })
).listen(8000);
gulp.src('**/*')
.pipe(watch())
.pipe(livereload())
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment