Created
June 15, 2015 23:55
-
-
Save kylebuch8/f75a0736b02e970a4d99 to your computer and use it in GitHub Desktop.
Starting Gulpfile with BrowserSync
This file contains 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'); | |
var browserSync = require('browser-sync').create(); | |
var reload = browserSync.reload; | |
gulp.task('serve', function () { | |
browserSync.init({ | |
server: { | |
baseDir: "./app" | |
} | |
}); | |
gulp.watch(["app/**/*.html", "app/**/*.js"]).on("change", browserSync.reload); | |
}); | |
gulp.task('default', ['serve']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment