|  | 
| 1 | 1 | [webpack-dev-server](https://github.com/webpack/webpack-dev-server) can be used to quickly develop an application. See the [development guide](/guides/development/) to get started. | 
| 2 | 2 | 
 | 
| 3 |  | -This page describes the options that affect the behavior of webpack-dev-server (short: dev-server) `v4.0.0+`. Migration guide from `v3` to `v4` can be found [here](https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md). | 
|  | 3 | +This page describes the options that affect the behavior of webpack-dev-server (short: dev-server) `v4.0.0+`. Migration guide from `v3` to `v4` can be found [here](https://github.com/webpack/webpack-dev-server/blob/main/migration-v4.md). | 
| 4 | 4 | 
 | 
| 5 | 5 | > **Warning** | 
| 6 | 6 | > | 
| @@ -41,7 +41,7 @@ When the server is started, there will be a message prior to the list of resolve | 
| 41 | 41 | 
 | 
| 42 | 42 | that will give some background on where the server is located and what it's serving. | 
| 43 | 43 | 
 | 
| 44 |  | -If you're using dev-server through the Node.js API, the options in `devServer` will be ignored. Pass the options as the first parameter instead: `new WebpackDevServer({...}, compiler)`. [See here](https://github.com/webpack/webpack-dev-server/tree/master/examples/api/simple) for an example of how to use webpack-dev-server through the Node.js API. | 
|  | 44 | +If you're using dev-server through the Node.js API, the options in `devServer` will be ignored. Pass the options as the first parameter instead: `new WebpackDevServer({...}, compiler)`. [See here](https://github.com/webpack/webpack-dev-server/tree/main/examples/api/simple) for an example of how to use webpack-dev-server through the Node.js API. | 
| 45 | 45 | 
 | 
| 46 | 46 | > **Warning** | 
| 47 | 47 | > | 
| @@ -71,7 +71,7 @@ You can invoke webpack-dev-server via CLI by: | 
| 71 | 71 | npx webpack serve | 
| 72 | 72 | ``` | 
| 73 | 73 | 
 | 
| 74 |  | -A list of CLI options for `serve` is available [here](https://github.com/webpack/webpack-cli/blob/master/SERVE-OPTIONS-v4.md) | 
|  | 74 | +A list of CLI options for `serve` is available [here](https://github.com/webpack/webpack-cli/blob/main/SERVE-OPTIONS-v4.md) | 
| 75 | 75 | 
 | 
| 76 | 76 | ### Usage via API | 
| 77 | 77 | 
 | 
| @@ -457,7 +457,7 @@ npx webpack serve --client-web-socket-transport ws --web-socket-server ws | 
| 457 | 457 | > | 
| 458 | 458 | > When providing a custom client and server implementation make sure that they are compatible with one another to communicate successfully. | 
| 459 | 459 | 
 | 
| 460 |  | -To create a custom client implementation, create a class that extends [`BaseClient`](https://github.com/webpack/webpack-dev-server/blob/master/client-src/clients/BaseClient.js). | 
|  | 460 | +To create a custom client implementation, create a class that extends [`BaseClient`](https://github.com/webpack/webpack-dev-server/blob/main/client-src/clients/BaseClient.js). | 
| 461 | 461 | 
 | 
| 462 | 462 | Using path to `CustomClient.js`, a custom WebSocket client implementation, along with the compatible `'ws'` server: | 
| 463 | 463 | 
 | 
| @@ -1986,7 +1986,7 @@ module.exports = { | 
| 1986 | 1986 | }; | 
| 1987 | 1987 | ``` | 
| 1988 | 1988 | 
 | 
| 1989 |  | -To create a custom server implementation, create a class that extends [`BaseServer`](https://github.com/webpack/webpack-dev-server/blob/master/lib/servers/BaseServer.js). | 
|  | 1989 | +To create a custom server implementation, create a class that extends [`BaseServer`](https://github.com/webpack/webpack-dev-server/blob/main/lib/servers/BaseServer.js). | 
| 1990 | 1990 | 
 | 
| 1991 | 1991 | Using path to `CustomServer.js`, a custom WebSocket server implementation, along with the compatible `'ws'` client: | 
| 1992 | 1992 | 
 | 
|  | 
0 commit comments