{"id":15503864,"url":"https://github.com/kentcdodds/webpack-validator-deprecated","last_synced_at":"2025-09-15T14:21:29.466Z","repository":{"id":66053058,"uuid":"51756778","full_name":"kentcdodds/webpack-validator-DEPRECATED","owner":"kentcdodds","description":"Use this to save yourself some time when working on a webpack configuration.","archived":false,"fork":false,"pushed_at":"2021-01-25T23:27:42.000Z","size":84,"stargazers_count":93,"open_issues_count":5,"forks_count":8,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-23T00:02:08.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kentcdodds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-15T13:19:59.000Z","updated_at":"2023-10-12T05:42:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"65ae77f0-b770-4e8d-86cd-091f74d0bee5","html_url":"https://github.com/kentcdodds/webpack-validator-DEPRECATED","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kentcdodds/webpack-validator-DEPRECATED","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fwebpack-validator-DEPRECATED","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fwebpack-validator-DEPRECATED/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fwebpack-validator-DEPRECATED/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fwebpack-validator-DEPRECATED/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentcdodds","download_url":"https://codeload.github.com/kentcdodds/webpack-validator-DEPRECATED/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fwebpack-validator-DEPRECATED/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275268214,"owners_count":25434802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T09:15:03.467Z","updated_at":"2025-09-15T14:21:29.419Z","avatar_url":"https://github.com/kentcdodds.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack Validator\n\n## DEPRECATED\n\nThis repo has been deprecated in favor of [this one](https://github.com/jonathanewerner/webpack-validator)\n\n---\n\nUse this to save yourself some time when working on a webpack configuration.\n\n[![Build Status](https://img.shields.io/travis/kentcdodds/webpack-validator.svg?style=flat-square)](https://travis-ci.org/kentcdodds/webpack-validator)\n[![Code Coverage](https://img.shields.io/codecov/c/github/kentcdodds/webpack-validator.svg?style=flat-square)](https://codecov.io/github/kentcdodds/webpack-validator)\n[![version](https://img.shields.io/npm/v/webpack-validator.svg?style=flat-square)](http://npm.im/webpack-validator)\n[![downloads](https://img.shields.io/npm/dm/webpack-validator.svg?style=flat-square)](http://npm-stat.com/charts.html?package=webpack-validator\u0026from=2015-08-01)\n[![MIT License](https://img.shields.io/npm/l/webpack-validator.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/)\n\n**BETA**: This is currently in beta and is a work in progress\n\nSimply do:\n\n```javascript\nvar validateWebpackConfig = require('webpack-validator')\nvar config = { /* ... */ }\nmodule.exports = validateWebpackConfig(config)\n```\n\nAnd you'll get helpful error and warning messages telling you when you've got something wrong.\n\n## Installation\n\n```\nnpm install --save-dev webpack-validator\n```\n\n## Support\n\nThis module supports validating all [documented properties](http://webpack.github.io/docs/configuration.html) from webpack.\nCurrently, many of these don't do any actual validation, but it will warn you when you are including a property that is not\ndocumented (which likely means you have a typo, one of the leading causes of webpack fatigue).\n\n## Custom Validators\n\nIf you're using a plugin that adds properties to the config, you'll need to add a custom validator that covers that property.\nPreferably this would do actual validation, but you can have it be a no-op validator as well.\n\nFor example, there are currently no validators written for the `eslint-loader` ([pull requests welcome!](http://makeapullrequest.com)),\nSo you'll have to stub some out to avoid warnings if you're configuring it as part of your webpack config. Like so:\n\n```javascript\nmodule.exports = validateWebpack({\n  // ... your other config\n  eslint: { emitError: true },\n}, [\n  {key: 'eslint', validate: function noop() {}}\n])\n```\n\nEventually, the hope is that you'll be able to require in these extra validators and they would actually validate values for you.\n\n## Roadmap\n\n- We're looking to cover all official properties\n- We need to make plugin validators\n- We need to do actual validation, not just spell-check\n- Documenting stuff\n\n## Plugins\n\nThis was built with the [configuration-validator](https://github.com/kentcdodds/configuration-validator)\n(also in beta) and is fully pluggable. To specify your own validators, simply pass them as additional\narguments.\n\n## LICENSE\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fwebpack-validator-deprecated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentcdodds%2Fwebpack-validator-deprecated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fwebpack-validator-deprecated/lists"}