Webpack-cli: [Feature]: Re-add old CLI flags

Created on 30 Apr 2020  路  7Comments  路  Source: webpack/webpack-cli

Is your feature request related to a problem? Please describe.

Right now, we don't have all the old CLI flags. It would be good to add them back along with new webpack v5 config options.

Describe the solution you'd like

Flags added back in cli-flags.js file.

Describe alternatives you've considered

N/A
Additional context

You can have a look at the old flags by looking at the master branch of webpack-cli

Discussion

All 7 comments

No, now we have API for flags on webpack side and we should use it, for webpack@4 we should support only minimum flags (what we supported now), we don't need doing extra unnecessary work

I think we should have the old api, minimal flags makes the CLI just a skeleton. We should support a set of features that the old CLI provided

@evenstensberg Why? We don't need to do double work, most of developers prefer configurations over CLI flags, so it is not priority and require a lot of unnecessary work, which most likely will not be used by most developers

Okay, I'm +1 on that. My idea was that we support it nonetheless to make it more sleek to devs that end up using the CLI only for development purposes instead of a config file.

As per roadmap:

  • for __webpack@4__ support only popular, like mode, stats and etc (already supported)
  • for __webpack@5__ support all flags provided by webpack API

@snitin315 Yes :+1:

Let's close it, we don't need old flags, webpack@5 have api, for webpack@4 we will support only limited flags

Was this page helpful?
0 / 5 - 0 ratings