Created
June 30, 2016 11:29
-
-
Save ciases/37b6c610e085ec54fc6a3358bbcfe614 to your computer and use it in GitHub Desktop.
Gulp + BrowserSync (minimal config)
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
// Usage: | |
// $ npm install gulp browser-sync --save-dev | |
// $ gulp serve | |
'use strict'; | |
var gulp = require('gulp'); | |
var browserSync = require('browser-sync').create(); | |
gulp.task('serve', function() { | |
browserSync.init({ | |
server: { | |
baseDir: "./" | |
} | |
}); | |
gulp.watch('./**/*.*').on('change', browserSync.reload); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment