Skip to content

Instantly share code, notes, and snippets.

@fernandiez
Created September 20, 2018 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandiez/58a1910283524d5bbce9fee60ee4ae93 to your computer and use it in GitHub Desktop.
Save fernandiez/58a1910283524d5bbce9fee60ee4ae93 to your computer and use it in GitHub Desktop.
Opciones Browsersync
// Browsersync options
const syncOpts = {
proxy : 'localhost',
files : dir.build + '**/*',
open : false,
notify : false,
ghostMode : false,
ui: {
port: 8001
}
};
// browser-sync
gulp.task('browsersync', () => {
if (browsersync === false) {
browsersync = require('browser-sync').create();
browsersync.init(syncOpts);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment