Add "instances" array + test

This commit is contained in:
Glen
2015-11-29 15:41:30 +02:00
parent ce56f8e2f4
commit 9f1a17eef4
2 changed files with 4 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ evt.on("init", function () {
browserSync(config);
var instance = browserSync.instances[0];
var bs = browserSync.create();
bs.init({

View File

@@ -328,6 +328,8 @@ declare module "browser-sync" {
* @param name the identifier used for retrieval
*/
get(name: string): BrowserSyncInstance;
instances: BrowserSyncInstance[];
}
interface BrowserSyncInstance {