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

feat: progress supports string argument #2000

Merged
merged 5 commits into from
Oct 30, 2020
Merged

Conversation

alexander-akait
Copy link
Member

What kind of change does this PR introduce?

feature

Did you add tests for your changes?

Yes

If relevant, did you update the documentation?

No

Summary

request from @sokra

Does this PR introduce a breaking change?

No

Other information

No

Comment on lines +26 to +28
const isProfile = this.options.progress === 'profile';

new ProgressPlugin({ profile: isProfile }).apply(compiler);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if an invalid value is provided webpack --progress=invalid. Should we throw error ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, please review again

test/progress/progress-flag.test.js Outdated Show resolved Hide resolved
@webpack-bot
Copy link

@evilebottnawi Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@snitin315 Please review the new changes.

@alexander-akait alexander-akait merged commit f13346e into master Oct 30, 2020
@alexander-akait alexander-akait deleted the feat-progress-profile branch October 30, 2020 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants