js-dxtools / webpack-validator

Validates your webpack config with Joi
MIT License
295 stars 29 forks source link

feat(cli): Support webpack 2 --env #92

Closed kentcdodds closed 8 years ago

kentcdodds commented 8 years ago

In webpack 2, your config can be a function that accepts the env flag as parsed from yargs (see here). This will allow people to use the --env flag with the CLI for their Webpack 2 configs.

jonathanglasmeyer commented 8 years ago

LGTM.