mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-21 05:21:52 +00:00
32 lines
570 B
JavaScript
32 lines
570 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: [config.dest.path]
|
|
},
|
|
ui: {
|
|
port: 9001,
|
|
weinre: {
|
|
port: 9002
|
|
}
|
|
},
|
|
watchTask: true
|
|
});
|
|
});
|
|
|
|
export default browserSync;
|