Skip to content

Instantly share code, notes, and snippets.

@x2764tech
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save x2764tech/9507607 to your computer and use it in GitHub Desktop.

Select an option

Save x2764tech/9507607 to your computer and use it in GitHub Desktop.

Revisions

  1. x2764tech revised this gist Mar 12, 2014. 1 changed file with 0 additions and 8 deletions.
    8 changes: 0 additions & 8 deletions gulpfile.js
    Original 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())
    /*var server = livereload();
    gulp.watch( paths.v2 ).on( 'change', function(file) {
    server.changed(file.path);
    });*/
    });
  2. x2764tech created this gist Mar 12, 2014.
    23 changes: 23 additions & 0 deletions gulpfile.js
    Original 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);
    });*/
    });