Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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