|
2 | 2 |
|
3 | 3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4 | 4 |
|
| 5 | +## [4.0.0-beta.2](https://github.com/webpack/webpack-dev-server/compare/v4.0.0-beta.1...v4.0.0-beta.2) (2021-04-06) |
| 6 | + |
| 7 | + |
| 8 | +### ⚠ BREAKING CHANGES |
| 9 | + |
| 10 | +* the `openPage` option and the `--open-page` CLI option were removed in favor `{ open: ['/my-page', '/my-other-page/'] }` for Node.js API and `--open-target [URL]` (without `[URL]` dev server will open a browser using the `host` option value) and `--open-app <browser>` for CLI |
| 11 | +* the `useLocalIp` option was removed in favor `{ host: 'local-ip' }`, alternative you can provide values: `local-ipv4` for IPv4 and `local-ipv6` for IPv6 |
| 12 | +* `stdin` option was removed in favor `--watch-options-stdin` |
| 13 | +* `injectClient` and `injectHot` was removed in favor `client.needClientEntry` and `client.needHotEntry` |
| 14 | + |
| 15 | +### Features |
| 16 | + |
| 17 | +* added the `watchFiles` option, now you can reload server on file changes, for example `{ watchFiles: ['src/**/*.php', 'public/**/*'] }` ([#3136](https://github.com/webpack/webpack-dev-server/issues/3136)) ([d73213a](https://github.com/webpack/webpack-dev-server/commit/d73213ab04b9cae38364a0c68dfc3bdfd8df227f)) |
| 18 | +* added more CLI options, please run `webpack server --help` ([#3148](https://github.com/webpack/webpack-dev-server/issues/3148)) ([03a2b27](https://github.com/webpack/webpack-dev-server/commit/03a2b27011098b6b98b3d20c4c46a949c4f05355)) |
| 19 | +* enable overlay by default ([#3108](https://github.com/webpack/webpack-dev-server/issues/3108)) ([5e05e48](https://github.com/webpack/webpack-dev-server/commit/5e05e48a56232038c1341f2c0deae3d35a1add47)) |
| 20 | +* you can specify multiple targets and browsers for the `open` option, i.e. `{ open: { target: ['/my-page', '/my-other-page'], app: ['google-chrome', '--incognito'] } }` ([e3c2683](https://github.com/webpack/webpack-dev-server/commit/e3c26835fae88a478baad477d537bd0ff1424db9)) |
| 21 | + |
| 22 | + |
| 23 | +### Bug Fixes |
| 24 | + |
| 25 | +* `/webpack-dev-server` url shows list of files ([#3101](https://github.com/webpack/webpack-dev-server/issues/3101)) ([b3374c3](https://github.com/webpack/webpack-dev-server/commit/b3374c3ec2e07e4ba41e4ef40beaff5b9da2eccc)) |
| 26 | +* dev server client compatibility with `IE11`/`IE10`/`IE9` ([#3129](https://github.com/webpack/webpack-dev-server/issues/3129)) ([1e3e656](https://github.com/webpack/webpack-dev-server/commit/1e3e656b5871456a483401f829a4dd4e67d48863)) |
| 27 | + |
| 28 | + * For `IE11`/`IE10` you need polyfill `fetch()` and `Promise`, example: |
| 29 | + |
| 30 | + ```js |
| 31 | + module.exports = { |
| 32 | + entry: { |
| 33 | + entry: [ |
| 34 | + 'whatwg-fetch', |
| 35 | + 'core-js/features/promise', |
| 36 | + './entry.js' |
| 37 | + ], |
| 38 | + }, |
| 39 | + }; |
| 40 | + ``` |
| 41 | + |
| 42 | + * For `IE9` you need polyfill `fetch()` and `Promise` and use `sockjs` for communications (because `WebSocket` is not supported), example: |
| 43 | + |
| 44 | + ```js |
| 45 | + module.exports = { |
| 46 | + entry: { |
| 47 | + entry: [ |
| 48 | + 'whatwg-fetch', |
| 49 | + 'core-js/features/promise', |
| 50 | + './entry.js' |
| 51 | + ], |
| 52 | + }, |
| 53 | + devServer: { |
| 54 | + transportMode: 'sockjs', |
| 55 | + }, |
| 56 | + }; |
| 57 | + ``` |
| 58 | + |
| 59 | + IE8 is not supported |
| 60 | + |
| 61 | +* hostname resolving ([#3128](https://github.com/webpack/webpack-dev-server/issues/3128)) ([cd39491](https://github.com/webpack/webpack-dev-server/commit/cd39491ea395c985f2014dfc03379db5c894f711)) |
| 62 | +* improve CLI options ([#3151](https://github.com/webpack/webpack-dev-server/issues/3151)) ([09fa827](https://github.com/webpack/webpack-dev-server/commit/09fa827c0abbce271fa70f3553b004ff64d16b32)) |
| 63 | +* output description on invalid options ([#3154](https://github.com/webpack/webpack-dev-server/issues/3154)) ([2e02978](https://github.com/webpack/webpack-dev-server/commit/2e02978f921ebdbda020f746f35c86048de9b2ee)) |
| 64 | +* prefer to open the `host` option ([#3115](https://github.com/webpack/webpack-dev-server/issues/3115)) ([7e525eb](https://github.com/webpack/webpack-dev-server/commit/7e525ebe35201996d047d14af05709b0b082ae7a)) |
| 65 | +* reduce number of `dependencies` |
| 66 | + |
5 | 67 | ## [4.0.0-beta.1](https://github.com/webpack/webpack-dev-server/compare/v4.0.0-beta.0...v4.0.0-beta.1) (2021-03-23)
|
6 | 68 |
|
7 | 69 |
|
|
0 commit comments