webpack-configurator icon indicating copy to clipboard operation
webpack-configurator copied to clipboard

Validate config with JSON schema

Open vjpr opened this issue 9 years ago • 1 comments

Would help catch typos in the config.

vjpr avatar Oct 27 '15 22:10 vjpr

Looks like Webpack 2 does this itself :)

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.module.loaders[2] has an unknown property 'queries'. These properties are valid:
   object { enforce?, exclude?, include?, issuer?, loader?, loaders?, oneOf?, options?, parser?, query?, resource?, rules?, test?, use? }

asztal avatar Nov 02 '16 23:11 asztal