Skip to content

Instantly share code, notes, and snippets.

@gweatherson
Created February 9, 2014 03:26
Show Gist options
  • Save gweatherson/8893759 to your computer and use it in GitHub Desktop.
Save gweatherson/8893759 to your computer and use it in GitHub Desktop.
gulp browser sync for mamp
gulp.task('browser-sync', function() {
browserSync.init(['css/*.css', 'js/*.js'], { // files to inject
proxy: {
host: "localhost",
port: 8888
}
});
});
@falehenrique
Copy link

Hi, where i create this file? htdocs?

tks.

@devope
Copy link

devope commented Dec 19, 2016

@falehenrique,
in your gulpfile.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment