Up-to-date types for webpack-dev-server, generated from JSON schema.
With webpack@v5
being stable for several months now, webpack-dev-server@v4
remains in beta, with no clear release timeline in sight. The only officially available types for webpack-dev-server
(@types/webpack-dev-server
) are still limited to v3; understandably so, as v4 has had at least one breaking config change in each of its betas. That leaves webpack@v5
users stuck with having to use the webpack-dev-server
beta without any Typescript typings, and without an easy way to identify breaking config changes (the release notes haven't been terribly helpful).
This is where this repo and npm package, webpack-dev-server-types
, comes in. Using GitHub Actions, it monitors the webpack/webpack-dev-server repo for new releases. When there is a new release, types are automatically generated from the lib/options.json JSON schema, using quicktype, and a new version of the types is released (with a matching version number).