trivago / parallel-webpack

Builds multi-config webpack projects in parallel
BSD 3-Clause "New" or "Revised" License
1.48k stars 96 forks source link

Support for --config-name to build one or more specific configuration(s) #109

Open koen-dev opened 4 years ago

koen-dev commented 4 years ago

Explain the problem

Let me start by pointing out that this package has improved the build time by a lot. We have about 20+ configurations that without parallel-webpack takes about 162 seconds and with takes 82 seconds.

I just don't understand how I can only run a specific configuration like I am used to with webpack by using the flag --config-name=<name>.

Expected Behaviour

Ability to run a single configuration by using the flag parallel-webpack -- --config-name=<name> or multiple by providing more than one flag parallel-webpack -- --config-name=<name> --config-name=<name>

Actual Behaviour

Runs all 20+ configuration.

Provide your webpack config

I can't share my entire webpack.config.js but I build my config using:

module.exports = (env, argv) => { }

It returns a config array based on globs. Let me know if more information is needed.

Provide your Environment details