Last active
August 29, 2015 13:57
-
-
Save x2764tech/9507607 to your computer and use it in GitHub Desktop.
Revisions
-
x2764tech revised this gist
Mar 12, 2014 . 1 changed file with 0 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,20 +4,12 @@ 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()) }); -
x2764tech created this gist
Mar 12, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ 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()) /*var server = livereload(); gulp.watch( paths.v2 ).on( 'change', function(file) { server.changed(file.path); });*/ });