Created
October 23, 2015 20:40
-
-
Save freshcutdevelopment/1aa6df7ac7ca4f231abf to your computer and use it in GitHub Desktop.
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'); | |
var nodemon = require('gulp-nodemon'); | |
gulp.task('browser-sync', ['nodemon'], function() { | |
browserSync.init(null, { | |
proxy: "http://localhost:5001", | |
files: ["app/**/*.*"], | |
browser: "google chrome", | |
port: 7001, | |
}); | |
}); | |
gulp.task('nodemon', function () { | |
return nodemon({script: 'app.js'}) | |
.on('restart', function(){ | |
console.log("refreshing browser..."); | |
}); | |
}); | |
gulp.task('default', ['browser-sync'], function () { | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment