codymikol / karma-webpack

Karma webpack Middleware
MIT License
830 stars 222 forks source link

env/argv #369

Closed stevenvachon closed 5 years ago

stevenvachon commented 6 years ago

Feature Proposal

Webpack configs can also be a function, for passing in data from the CLI. This API would be useful for passing from Karma as well.

See:

Feature Use Case

Switching behaviours, such as development/production modes for different build options.

stevenvachon commented 6 years ago

Actually, I think that I figured out how to achieve this:

webpack: require('./webpack.config')(env, argv)