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

Webpackbar's info will disappear when use webpack5 #81

Open
sunyuu opened this issue Feb 3, 2021 · 3 comments
Open

Webpackbar's info will disappear when use webpack5 #81

sunyuu opened this issue Feb 3, 2021 · 3 comments

Comments

@sunyuu
Copy link

sunyuu commented Feb 3, 2021

Version

webpackbar@5.0.0-3
webpack@5.20.0

Steps to reproduce

use webpack5 run two webpack builds concurrently like below

const webpack = require('webpack')
const serverConfig = require('./webpack.server')
const clientConfig = require('./webpack.client')


const serverCompiler = webpack(serverConfig)
const clientCompiler = webpack(clientConfig)


webpackCompiler(serverCompiler)
webpackCompiler(clientCompiler)

function webpackCompiler(compiler) {
    compiler.run((err, stats) => {
        if (stats.hasErrors()) {
            const error = new Error('wepack build error')
            error.stack = stats.toString('errors-only')

            throw error
        }
    })
}

What is actually happening?

We see two bars, but server bar's info will disappear after server compiler done.

image

What is expected ?

The two bar's info show correctly.
image

@sunyuu sunyuu changed the title webpackbar's info will disappear when use webpack5 Webpackbar's info will disappear when use webpack5 Feb 3, 2021
@sunyuu
Copy link
Author

sunyuu commented Feb 3, 2021

probably webpack still handler message after the compiler hook the 'done'

@tang-yue
Copy link

I have the same problem.

@hangaoke1
Copy link

+1

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

3 participants