Skip to content

Instantly share code, notes, and snippets.

@ahmadawais ahmadawais/gulpfile.js
Last active Jun 6, 2018

What would you like to do?
Gulp: Browser Sync Task
* Browser Sync
* Asynchronous browser syncing of assets across multiple devices!! Watches for changes to js, image and php files
* Although, I think this is redundant, since we have a watch task that does this already.
gulp.task('browser-sync', function() {
var files = [
browserSync.init(files, {
// Read here
proxy: url,
// port: 8080,
// Tunnel the Browsersync server through a random Public URL
// tunnel: true,
// Attempt to use the URL ""
// tunnel: "ppress",
// Inject CSS changes
injectChanges: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.