src/core.js
/**
       * This 'ready' callback can be used
       * to access the Browsersync instance
       */
This 'ready' callback can be used
to access the Browsersync instance
This ' ready ' callback can be used to access the Browsersync instance
ready(err, ins) {
        if (err) {
          if (globalConfig.watchMode) consola.info(err);
          else throw err;
        }
        ins.addMiddleware('*', (_, res) => {
          res.writeHead(302, {
            location: vpath(globalConfig.build.errorPage || '/404.html', true)
          });
          res.end('Redirecting!');
        });
      }
ready ( err , ins ) { if ( err ) { if ( globalConfig . watchMode ) consola . info ( err ) ; else throw err ; } ins . addMiddleware ( '*' , ( _ , res ) => { res . writeHead ( 302 , { location : vpath ( globalConfig . build . errorPage || '/404.html' , true ) } ) ; res . end ( 'Redirecting!' ) ; } ) ; }
This 'ready' callback can be used
 to access the Browsersync instance
This ' ready ' callback can be used to access the Browsersync instance