Skip to content

Feature request: show complition errors via browserSync fullscreen message #90

Description

@dkrnl

Hi!
Thx for browser-sync-webpack-plugin!

I got an idea: show error overlay , when webpack done compliation with errors.

Оriginal code from browsersync recipes:

// pseodo code
bundler.plugin('done', function (stats) {
    if (stats.hasErrors() || stats.hasWarnings()) {
        return browserSync.sockets.emit('fullscreen:message', {
            title: "Webpack Error:",
            body:  stripAnsi(stats.toString()),
            timeout: 100000
        });
    }
    browserSync.reload();
});

Question: can i create pull request this new feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions