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

Closed
sunyuu opened this issue Feb 3, 2021 · 4 comments
Closed

Webpackbar's info will disappear when use webpack5 #81

sunyuu opened this issue Feb 3, 2021 · 4 comments

Comments

@sunyuu
Copy link

sunyuu commented Feb 3, 2021

Version

[email protected]
[email protected]

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
Contributor

+1

@pi0
Copy link
Member

pi0 commented Nov 6, 2024

Should be solved by #81 in next (major) version.

@pi0 pi0 closed this as completed Nov 6, 2024
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

4 participants