Skip to content

Commit c8aed87

Browse files
committed
Merge branch 'master' into publicPath-output
2 parents 8b7476c + 3d27615 commit c8aed87

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: webpack-dev-server
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- next
88
- v4
99
pull_request:
1010
branches:
11-
- master
11+
- main
1212
- next
1313
- v4
1414

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The above changes may make the dev server not work if you relied on such behavio
8888

8989
## [5.0.0](https://github.com/webpack/webpack-dev-server/compare/v4.15.1...v5.0.0) (2024-02-12)
9090

91-
[Migration Guide and Changes](https://github.com/webpack/webpack-dev-server/blob/master/migration-v5.md).
91+
[Migration Guide and Changes](https://github.com/webpack/webpack-dev-server/blob/main/migration-v5.md).
9292

9393
### [4.15.1](https://github.com/webpack/webpack-dev-server/compare/v4.15.0...v4.15.1) (2023-06-09)
9494

@@ -324,7 +324,7 @@ The above changes may make the dev server not work if you relied on such behavio
324324
### Features
325325

326326
* add `--web-socket-server-type` option for CLI ([#4001](https://github.com/webpack/webpack-dev-server/issues/4001)) ([17c390a](https://github.com/webpack/webpack-dev-server/commit/17c390a04e474a675255eb25132b423e0614253f))
327-
* show deprecation warning for `https`/`http2` option, [migration guide for `https`](https://github.com/webpack/webpack-dev-server/tree/master/examples/server/https) and [migration guide for `http2`](https://github.com/webpack/webpack-dev-server/tree/master/examples/server/spdy) (because we use [`spdy`](https://github.com/spdy-http2/node-spdy) for http2 due `express` doesn't support http2) ([#4003](https://github.com/webpack/webpack-dev-server/issues/4003)) ([521cf85](https://github.com/webpack/webpack-dev-server/commit/521cf852a81c5913e17cf36c90140c566d4218e5))
327+
* show deprecation warning for `https`/`http2` option, [migration guide for `https`](https://github.com/webpack/webpack-dev-server/tree/main/examples/server/https) and [migration guide for `http2`](https://github.com/webpack/webpack-dev-server/tree/main/examples/server/spdy) (because we use [`spdy`](https://github.com/spdy-http2/node-spdy) for http2 due `express` doesn't support http2) ([#4003](https://github.com/webpack/webpack-dev-server/issues/4003)) ([521cf85](https://github.com/webpack/webpack-dev-server/commit/521cf852a81c5913e17cf36c90140c566d4218e5))
328328

329329

330330
### Bug Fixes
@@ -441,7 +441,7 @@ module.exports = {
441441

442442
## Notes:
443443

444-
- migration guide from v3 to v4 can be found [here](https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md)
444+
- migration guide from v3 to v4 can be found [here](https://github.com/webpack/webpack-dev-server/blob/main/migration-v4.md)
445445

446446
### Bug Fixes
447447

@@ -453,7 +453,7 @@ module.exports = {
453453

454454
## Notes:
455455

456-
- migration guide from v3 to v4 can be found [here](https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md)
456+
- migration guide from v3 to v4 can be found [here](https://github.com/webpack/webpack-dev-server/blob/main/migration-v4.md)
457457

458458
### Features
459459

@@ -475,7 +475,7 @@ module.exports = {
475475

476476
## Notes:
477477

478-
- migration guide from v3 to v4 can be found [here](https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md)
478+
- migration guide from v3 to v4 can be found [here](https://github.com/webpack/webpack-dev-server/blob/main/migration-v4.md)
479479

480480
### ⚠ BREAKING CHANGES
481481

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Following these guidelines helps to communicate that you respect the time of the
2121

2222
- It is advised to first create an issue (if there is not one already) before making a pull request. This way the maintainers can first discuss with you if they agree and it also helps with providing some context.
2323

24-
- Run the relevant [examples](https://github.com/webpack/webpack-dev-server/tree/master/examples) to see if all functionality still works. When introducing new functionality, also add an example. This helps the maintainers to understand it and check if it still works.
24+
- Run the relevant [examples](https://github.com/webpack/webpack-dev-server/tree/main/examples) to see if all functionality still works. When introducing new functionality, also add an example. This helps the maintainers to understand it and check if it still works.
2525

2626
- Write tests.
2727

DOCUMENTATION-v4.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[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.
22

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

55
> **Warning**
66
>
@@ -41,7 +41,7 @@ When the server is started, there will be a message prior to the list of resolve
4141

4242
that will give some background on where the server is located and what it's serving.
4343

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

4646
> **Warning**
4747
>
@@ -71,7 +71,7 @@ You can invoke webpack-dev-server via CLI by:
7171
npx webpack serve
7272
```
7373

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

7676
### Usage via API
7777

@@ -457,7 +457,7 @@ npx webpack serve --client-web-socket-transport ws --web-socket-server ws
457457
>
458458
> When providing a custom client and server implementation make sure that they are compatible with one another to communicate successfully.
459459
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).
461461

462462
Using path to `CustomClient.js`, a custom WebSocket client implementation, along with the compatible `'ws'` server:
463463

@@ -1986,7 +1986,7 @@ module.exports = {
19861986
};
19871987
```
19881988

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

19911991
Using path to `CustomServer.js`, a custom WebSocket server implementation, along with the compatible `'ws'` client:
19921992

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ This project is heavily inspired by [peerigon/nof5](https://github.com/peerigon/
311311
[node-url]: https://nodejs.org
312312
[tests]: https://github.com/webpack/webpack-dev-server/workflows/webpack-dev-server/badge.svg
313313
[tests-url]: https://github.com/webpack/webpack-dev-server/actions?query=workflow%3Awebpack-dev-server
314-
[cover]: https://codecov.io/gh/webpack/webpack-dev-server/branch/master/graph/badge.svg
314+
[cover]: https://codecov.io/gh/webpack/webpack-dev-server/graph/badge.svg
315315
[cover-url]: https://codecov.io/gh/webpack/webpack-dev-server
316316
[discussion]: https://img.shields.io/github/discussions/webpack/webpack
317317
[discussion-url]: https://github.com/webpack/webpack/discussions

migration-v4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,4 +730,4 @@ There are a lot of other bug fixes.
730730
);
731731
```
732732

733-
- [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.
733+
- [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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"fix:code": "npm run lint:code -- --fix",
3232
"fix:prettier": "npm run lint:prettier -- --write",
3333
"fix": "npm-run-all -l fix:code fix:prettier",
34-
"commitlint": "commitlint --from=master",
34+
"commitlint": "commitlint --from=main",
3535
"build:client": "rimraf -g ./client/* && babel client-src/ --out-dir client/ --ignore \"client-src/webpack.config.js\" --ignore \"client-src/modules\" && webpack --config client-src/webpack.config.js",
3636
"build:types": "rimraf -g ./types/* && tsc --declaration --emitDeclarationOnly --outDir types && node ./scripts/extend-webpack-types.js && prettier \"types/**/*.ts\" --write && prettier \"types/**/*.ts\" --write",
3737
"build": "npm-run-all -p \"build:**\"",

0 commit comments

Comments
 (0)