Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

[Upstream] Silence webpack progress #27

Closed
johndab opened this issue Aug 26, 2019 · 5 comments
Closed

[Upstream] Silence webpack progress #27

johndab opened this issue Aug 26, 2019 · 5 comments

Comments

@johndab
Copy link

johndab commented Aug 26, 2019

With vue-cli 3.11.0 the progress is printed like that:

fail: VueCliMiddleware[0]
      <s> [webpack.Progress] 12% building 24/28 modules 4 active C:\dev\UI\node_modules\cache-loader\dist\cjs.js??ref--12-0!C:\dev\UI\node_modules\babel-loader\lib\index.js!C:\dev\UI\node_modules\eslint-loader\index.js??ref--13-0!C:\dev\UI\src\silent-renew-oidc.js


fail: VueCliMiddleware[0]
      <s> [webpack.Progress] 12% building 24/29 modules 5 active C:\dev\UI\node_modules\webpack-dev-server\node_modules\strip-ansi\index.js


fail: VueCliMiddleware[0]
      <s> [webpack.Progress] 13% building 25/29 modules 4 active C:\dev\UI\node_modules\webpack-dev-server\node_modules\strip-ansi\index.js


fail: VueCliMiddleware[0]
      <s> [webpack.Progress] 13% building 26/29 modules 3 active C:\dev\UI\node_modules\cache-loader\dist\cjs.js??ref--12-0!C:\dev\UI\node_modules\babel-loader\lib\index.js!C:\dev\UI\node_modules\eslint-loader\index.js??ref--13-0!C:\dev\UI\src\silent-renew-oidc.js


fail: VueCliMiddleware[0]
      <s> [webpack.Progress] 13% building 26/30 modules 4 active C:\dev\UI\node_modules\querystring-es3\decode.js

... and so on

Works fine with vue-cli 3.10.0.
VueCliMiddleware 2.2.x

@johndab
Copy link
Author

johndab commented Sep 30, 2019

in vue-cli 3.11 webpack emits full lines without \b characters and ending with \n so they're printed with OnReceivedLine like a normal messages:

image

whereas in 3.10:

image

I can't find exactly which change in webpack is responsible

@EEParker
Copy link
Owner

EEParker commented Oct 15, 2019

I found a related upstream issue, so this might have to wait.
vuejs/vue-cli#4557
vuejs/vue-cli#3603

@EEParker
Copy link
Owner

FYI, the current workaround is to add chainConfig.plugins.delete('progress'); to vue.config.js

@EEParker EEParker changed the title Invalid build progress format with vue-cli 3.11 [Upstream] Silence webpack progress Oct 15, 2019
@futuralogic
Copy link

futuralogic commented Nov 18, 2019

FYI, the current workaround is to add chainConfig.plugins.delete('progress'); to vue.config.js

Based on your comment, I tried the following, without success.

	chainWebpack: config => {
		config.plugins.delete('progress');

It doesn't seem progress plugin is in place for webpack dev server.

# returns a list that does not include "progress"
vue inspect --plugins

I was able to stop progress from being displayed by doing the following in vue.config.js:

module.exports = {
	devServer: {
		progress: false
	},
       ....
}

Info found here: vuejs/vue-cli#4557 (comment)

@EEParker
Copy link
Owner

EEParker commented Jan 9, 2020

@EEParker EEParker closed this as completed Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants