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

fix(webpack-cli): correct cli-flags usage #1441

Merged
merged 1 commit into from
Apr 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions packages/webpack-cli/lib/utils/cli-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ module.exports = {
},
{
name: 'target',
usage: '--target',
alias: 't',
type: String,
group: ADVANCED_GROUP,
Expand Down Expand Up @@ -194,15 +195,15 @@ module.exports = {
},
{
name: 'prefetch',
usage: 'webpack --prefetch <request>',
usage: '--prefetch <request>',
type: String,
group: ADVANCED_GROUP,
description: 'Prefetch this request',
link: 'https://webpack.js.org/plugins/prefetch-plugin/',
},
{
name: 'json',
usage: 'webpack --json',
usage: '--json',
type: Boolean,
alias: 'j',
description: 'Prints result as JSON',
Expand Down Expand Up @@ -269,7 +270,7 @@ module.exports = {
},
{
name: 'stats',
usage: 'webpack --stats verbose',
usage: '--stats verbose',
type: (value) => {
if (StatsGroup.validOptions().includes(value)) {
return value;
Expand All @@ -283,7 +284,7 @@ module.exports = {
},
{
name: 'verbose',
usage: 'webpack --verbose',
usage: '--verbose',
type: Boolean,
group: DISPLAY_GROUP,
description: 'It tells webpack to output all the information',
Expand Down