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

The --no-progress flag does not hide the build progress #3372

Open
mabzzz opened this issue Sep 1, 2023 · 2 comments
Open

The --no-progress flag does not hide the build progress #3372

mabzzz opened this issue Sep 1, 2023 · 2 comments

Comments

@mabzzz
Copy link

mabzzz commented Sep 1, 2023

  • Laravel Mix Version: 6.0.49
  • Node Version: v18.7.0
  • NPM Version: 8.15.0
  • OS: Debian 11 (bullseye)

Description:

The --no-progress flag does not hide the build progress.

Steps To Reproduce:

  • Check the --no-progress flag in the mix --help

image

  • Run npx mix --no-progress build --production

image

@MasterOdin
Copy link

The issue seems to be that the WebpackBar plugin is always included and that's what's causing that output:

if (process.env.NODE_ENV !== 'test') {
plugins.push(new WebpackBar({ name: 'Mix' }));
}

At the current moment, I guess the way to do this would be to add a boolean property to the Mix class that toggles if progress is shown or not, and that can be used to wrap adding that plugin or not. Could probably figure out the value of it by looking for --progress on progress.argv array, or take advantage of the env var object that webpack provides.

@hackel
Copy link

hackel commented Nov 21, 2023

Dupe of #2970. This is a very old bug that I fear will never be fixed at this point.

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