-
-
Notifications
You must be signed in to change notification settings - Fork 644
Description
Operating System: Ubuntu 18.04
Node Version: 8.11.1
NPM Version: 6.0.0
webpack Version: 4.12.0
webpack-hot-client Version: 4.0.3
- This is a feature request
- This is a bug
What is the motivation and/or use-case for the feature?
Webpack supports multiple configurations in a single file by exporting an array.
Info Here
A new feature that was added recently (but currently lacks total documentation) is that you can set a 'name' property in your webpack config and pass --config-name to the cli to choose a specific config to build if you don't want to build all of them.
This feature request is to allow support of this functionality in the webpack-dev-middleware and related plugins.
Implementing this could be done in a couple ways:
- Support passing webpack-cli options into the middleware somehow
- Support choosing a config-name in the middleware options
I think the first solution is going to be the best approach if it's possible. This is because it would allow any webpack-cli arguments to be used with middlewares. If for some reason there's no way to go down this route, the second option would suffice for my use case, but it might be a good idea to look at other options listed here to see if they would merit being included as well