Skip to content

Instantly share code, notes, and snippets.

@SimonFricker
Created March 20, 2017 14:43
Show Gist options
  • Save SimonFricker/b8c799a697a2aa962aed10a3cb2bcd1d to your computer and use it in GitHub Desktop.
Save SimonFricker/b8c799a697a2aa962aed10a3cb2bcd1d to your computer and use it in GitHub Desktop.
Gulp- Browser Sync mamp
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
gulp.task('browserSync', function(){
browserSync.init({
proxy: "http://localhost/app/"
});
gulp.watch("./app/*.php").on("change", browserSync.reload);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment