Skip to content

Issue with BrowserSync instances #1002

@lifeBalance

Description

@lifeBalance

Since I have my Gulp tasks split in separate files, I've created an instance of BrowserSync in the serve.js task, and then try to get the instance with var bs = require("browser-sync").get('browSync); in another file.
While this works fine for the styles task, I get the following error when trying to do the same in the scripts task:

throw new Error("An instance with the name `%s` was not found.".replace("%s", name));
    ^

My code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions