Created
March 20, 2017 14:43
-
-
Save SimonFricker/b8c799a697a2aa962aed10a3cb2bcd1d to your computer and use it in GitHub Desktop.
Gulp- Browser Sync mamp
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(); | |
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