Created
February 17, 2017 23:10
-
-
Save linktohack/a3e9bb1a2be18b204be71b35c56fa4bd to your computer and use it in GitHub Desktop.
Gulp live reload
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 characters
'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()) | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<script src="http://localhost:35000/livereload.js"></script>