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

`resolve` validator #48

Closed jonathanglasmeyer closed 8 years ago

jonathanglasmeyer commented 8 years ago

Implement validation for stuff configured in resolve.

PatrickJS commented 8 years ago

can you add a validator for resolve.root to check that it's an absolute path and resolve.modulesDirectories has node_modules

jonathanglasmeyer commented 8 years ago

Sure. :)

jonathanglasmeyer commented 8 years ago

Have a look at #49.

kentcdodds commented 8 years ago

resolve.modulesDirectories has node_modules

Note, it's not necessarily wrong to exclude node_modules. But we could return a warning in this case.

Though I would recommend that we'd need to figure out a way to disable validators or that would get really annoying for someone who knows what they're doing.

PatrickJS commented 8 years ago

ya, I think we need a config file for webpack-validator (`webpack-validator.json') to make sure our webpack config file is valid inception-briefcase-kOIbusN7fPnkk