Skip to content

hmnd/webpack-dev-server-types

Repository files navigation

webpack-dev-server-types

Up-to-date types for webpack-dev-server, generated from JSON schema.

The Problem

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).

The Solution

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).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published