Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no Callback after browser:reload is fully complete #66

Open
mrt123 opened this issue May 1, 2016 · 0 comments
Open

no Callback after browser:reload is fully complete #66

mrt123 opened this issue May 1, 2016 · 0 comments

Comments

@mrt123
Copy link

mrt123 commented May 1, 2016

It will be useful to be able to call custom function after browser reload is fully finished. eg:

    devServer.init(...)
    gulp.watch([project.TEMPLATES], {},['compile-templates', function() {
        devServer.reload();
    }]);

    devServer.emitter.on("browser:reload", function () {
        devServer.notify('XXXXX', 20000);
    });

Above will cause notify to be called too early, followed by browser reload, and notification gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant