import * as browserSync from 'browser-sync' ; import { getPluginConfig } from '../../config' ; /**
 * Initialises BrowserSync with the configuration defined in seed.config.ts (or if overriden: project.config.ts).
 */ let runServer = ( ) => { browserSync . init ( getPluginConfig ( 'browser-sync' ) ) ; } ; /**
 * Runs BrowserSync as the listening process for the application.
 */ let listen = ( ) => { runServer ( ) ; } ; /**
 * Provides a flag to mark which files have changed and reloads BrowserSync accordingly.
 */ let changed = ( files ) => { if ( ! ( files instanceof Array ) ) { files = [ files ] ; } browserSync . reload ( files ) ; } ; export { listen , changed } ;