Last active
August 29, 2015 14:27
-
-
Save kurtbartholomew/3efa16ca8c8eb7910400 to your computer and use it in GitHub Desktop.
Extremely basic gulp dev file (proxy to backend server)
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 options = { | |
javascript:'client/public/src/**/*.js', | |
styles:'client/public/src/assets/css/*.css', | |
html:'client/public/src/**/*.html', | |
host: 'localhost:8000' | |
}; | |
gulp.task('serve',function(){ | |
browserSync.init({ | |
proxy: HOST, | |
notify: false | |
}); | |
gulp.watch(options.javascript).on('change',browserSync.reload); | |
gulp.watch(options.styles).on('change',browserSync.reload); | |
gulp.watch(options.html).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