Using a combination of config and command line arguments with webpack

Viewed 1038

I am using webpack with a large config file. To produce the bundle, I just enter "webpack" in the app folder and everything works fine.

Now I want to still be able to use the config file, but also override the output path on the command line, e.g.

>webpack input_path output_path

where input_path and output_path are just placeholders here.

Is it possible to use a webpack.config.js AND override parts of this configuration through command line arguments?

1 Answers
Related