kentcdodds / webpack-validator-DEPRECATED

Use this to save yourself some time when working on a webpack configuration.
MIT License
93 stars 8 forks source link

Simple version #12

Closed xjamundx closed 8 years ago

xjamundx commented 8 years ago

Mostly a :trollface: request to add support for some basic checking of common fields, but this actually works pretty well so :)

xjamundx commented 8 years ago

Some of the configs validate and some don't. Needs work :)

xjamundx commented 8 years ago

Core request here is validation on the following paths + unvalidated path warnings + strict mode:

  "entry": isStringOrNotEmptyObject,
  "module": { loaders: Array.isArray },
  "output": { path: isString, filename: isString },
  "plugins": Array.isArray,
  "devtool": isString,
  "context": isString,
  "resolve": {
    modulesDirectories: Array.isArray,
    extensions: Array.isArray,
    alias: isntEmpty
  }
kentcdodds commented 8 years ago

Thanks for this! I think we're set now!