Skip to content

Instantly share code, notes, and snippets.

@linktohack
Created February 17, 2017 23:10
Show Gist options
  • Save linktohack/a3e9bb1a2be18b204be71b35c56fa4bd to your computer and use it in GitHub Desktop.
Save linktohack/a3e9bb1a2be18b204be71b35c56fa4bd to your computer and use it in GitHub Desktop.
Gulp live reload
'use strict';
var gulp = require('gulp'),
livereload = require('gulp-livereload');
gulp.task('default', function () {
livereload.listen(35000);
gulp.watch('starter.html', function () {
gulp.src('starter.html').pipe(livereload())
});
});
@linktohack
Copy link
Author

<script src="http://localhost:35000/livereload.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment