Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Created October 23, 2015 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshcutdevelopment/1aa6df7ac7ca4f231abf to your computer and use it in GitHub Desktop.
Save freshcutdevelopment/1aa6df7ac7ca4f231abf to your computer and use it in GitHub Desktop.
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