How to use the instance function from browser-sync

Find comprehensive JavaScript browser-sync.instance code examples handpicked from public code repositorys.

22
23
24
25
26
27
28
29
30
31

const path = context.initialOptions.outdir;
const slug = Object.keys(context.initialOptions.entryPoints)[0];

context.onStart(() => {
  server.instance.active && server.info();
});

context.onEnd(result => {
  if (result.warnings.length || result.errors.length) return console.log('\007');
fork icon0
star icon0
watch icon0