Created
September 20, 2018 16:25
-
-
Save fernandiez/58a1910283524d5bbce9fee60ee4ae93 to your computer and use it in GitHub Desktop.
Opciones Browsersync
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
// 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