Skip to content
This repository has been archived by the owner on Oct 13, 2018. It is now read-only.

How to access browserSync instance from a plugin? #41

Open
ertrzyiks opened this issue Jul 1, 2017 · 0 comments
Open

How to access browserSync instance from a plugin? #41

ertrzyiks opened this issue Jul 1, 2017 · 0 comments

Comments

@ertrzyiks
Copy link

Hey, is there any way to access browserSync instance created on connection?

var browserSync = new BrowserSync(options);

I would like to create a plugin which modifies ghost mode. So far I managed to do what I wanted, but only as a fork. I'm wondering if I can apply the same by a bs plugin, but I need to access that browserSync variable. Any ideas? I can help with implementation if needed.

@ertrzyiks ertrzyiks changed the title How to access browserSync instance from the plugin? How to access browserSync instance from a plugin? Jul 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant