Skip to content

Instantly share code, notes, and snippets.

@Jurikay
Created April 10, 2015 21:21
Show Gist options
  • Save Jurikay/5efa9f364409a83d95af to your computer and use it in GitHub Desktop.
Save Jurikay/5efa9f364409a83d95af to your computer and use it in GitHub Desktop.
gulpfile.js
var gulp = require('gulp'),
connect = require('gulp-connect-php');
browserSync = require('browser-sync');
gulp.task('connect-sync', function() {
connect.server({}, function (){
browserSync({
tunnel: "devip",
open: "external",
notify: false,
proxy: {
target: "localhost:8000"
}
});
});
gulp.watch('./**/*.*', function () {
browserSync.reload();
});
});
// Default task to be run with `gulp`
gulp.task('default', ['connect-sync']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment