Created
March 7, 2017 15:39
-
-
Save johnsiwicki/a1019dadb2058051394868fe6f31c01d to your computer and use it in GitHub Desktop.
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
| var gulp = require('gulp'), | |
| connect = require('gulp-connect'); | |
| var fileTowatch = ["*.html","application/**"] ; | |
| gulp.task('connect', function() { | |
| connect.server({ | |
| livereload: true, | |
| port : 8888 | |
| }); | |
| }); | |
| gulp.task('html', function () { | |
| gulp.src(fileTowatch) | |
| .pipe(connect.reload()); | |
| }); | |
| gulp.task('watch', function () { | |
| gulp.watch(fileTowatch, ['html']); | |
| }); | |
| gulp.task('default', ['connect', 'watch']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment