mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-10 16:24:48 +00:00
36 lines
636 B
JavaScript
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;
|