vue-material/gulpfile.babel.js/tasks/browser-sync.js

37 lines
636 B
JavaScript
Raw Normal View History

2016-06-17 23:32:39 +00:00
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: {
2016-06-21 06:54:17 +00:00
baseDir: [
'node_modules',
config.demo.path,
config.dest.path
]
2016-06-17 23:32:39 +00:00
},
ui: {
port: 9001,
weinre: {
port: 9002
}
},
watchTask: true
});
});
export default browserSync;