vue-material/gulpfile.babel.js/tasks/browser-sync.js
2016-06-21 03:54:17 -03:00

36 lines
636 B
JavaScript

import _browsersync from 'browser-sync';
import gulp from 'gulp';
import config from '../config';
let browserSync = _browsersync.create();
gulp.task('browserSync', () => {
browserSync.init({
notify: false,
logLevel: 'silent',
logSnippet: false,
port: 9000,
ghostMode: {
clicks: true,
scroll: true,
links: true,
forms: true
},
server: {
baseDir: [
'node_modules',
config.demo.path,
config.dest.path
]
},
ui: {
port: 9001,
weinre: {
port: 9002
}
},
watchTask: true
});
});
export default browserSync;