webpackbar icon indicating copy to clipboard operation
webpackbar copied to clipboard

Webpackbar's info will disappear when use webpack5

Open sunyuu opened this issue 4 years ago • 3 comments

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 avatar Feb 03 '21 04:02 sunyuu

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

sunyuu avatar Feb 03 '21 05:02 sunyuu

I have the same problem.

tang-yue avatar Mar 17 '21 10:03 tang-yue

+1

hangaoke1 avatar Mar 10 '24 06:03 hangaoke1