Releases: webpack/webpack-dev-server
Releases · webpack/webpack-dev-server
v4.2.0
4.2.0 (2021-09-09)
Features
- added the
http.caoption (CLI option added too) (should be used insteadcacert, because we will remove it in the next major release in favor thehttps.caoption) - added the
https.crloption (CLI options added too), more information https.ca/https.cacert/https.cert/https.crl/https.key/https.pfxoptions are now accept Arrays ofBuffer/string/Path to file, using--https-*-resetCLI options you can reset these optionshttps.pfx/https.keycan beObject[], more informationhttpsoptions can now accept custom options, you can use:
module.exports = {
// Other options
devServer: {
https: {
// Allow to set additional TSL options https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options
minVersion: "TLSv1.1",
ca: path.join(httpsCertificateDirectory, "ca.pem"),
pfx: path.join(httpsCertificateDirectory, "server.pfx"),
key: path.join(httpsCertificateDirectory, "server.key"),
cert: path.join(httpsCertificateDirectory, "server.crt"),
passphrase: "webpack-dev-server",
},
}
};Bug Fixes
v4.1.1
v4.1.0
v4.0.0
v4.0.0-rc.1
4.0.0-rc.1 (2021-08-17)
Notes:
- migration guide from v3 to v4 can be found here
Features
Bug Fixes
- fix usage legacy API (#3660) (c4678bc)
- proxy logging and allow to pass options without the
targetoption (#3651) (6e2cbde) - render ansi formatted error messages correctly in overlay (#3579) (9313454)
- use value of the
infastructureLogging.leveloption by default forclient.logging. (#3613) (c9ccc96) - schema for the
hostoption (#3549) (7200d31) - show deprecation warning for incorrect usage of Node.js API (#3563) (62b21ff)
v4.0.0-rc.0
4.0.0-rc.0 (2021-07-19)
Notes:
- migration guide from v3 to v4 can be found here
⚠ BREAKING CHANGES
- rename
client.transporttoclient.webSocketTransport - move web socket client to web socket server class, i.e. to get web socket clients use
this.webSocketServer.clients - remove entry options (i.e.
hotEntryandneedClientEntry) in favor manual setup entries (#3494) - you need to reset CLI options using
resetoption, please look them inwebpack serve --help hostandportoptions can't benullor empty string
Features
- allow to close overlay in browser (#3433) (307f2e7)
- add port
auto(#3297) (437c8d3) - added
<url>pattern for open and allow to use multiple browsers (#3496) (7c7ccf9) - allow string value for
client.webSocketURL.port(#3354) (f5e7f8f) - allow to disable web socket server using
webSocketServer: false(f62f20f) - allow
usernameandpasswordin clientURL (#3452) (a7225d5) - display documentation links on errors (#3512) (54790ab)
- enable
compressby default (#3303) (4d251b5) - implement the
client.webSocketURL.protocoloption (#3380) (8998d6b) - the
ipcoption was added for unix socket (#3479) (b559738) - support
Functionin headers option (#3267) (28f9597)
Bug Fixes
- allow to use
80port for dev server (#3487) (22f18eb) - avoid duplicate
App updated. Recompiling...(#3488) (a2e3ead) - do not allow empty string for
port(#3372) (8c53102) - don't allow empty array for
allowedHostsoption (#3451) (17aa345) - get rid of Symbol core-js polyfill (#3535) (7afe3d2)
- the
hostoption can't benullor empty string (#3352) (216b0d3) - improve message for static content changes (#3289) (970a7d7)
- improve processing of CLI flags (#3313) (32bc877)
- rename
firewalloption toallowedHostsoption (#3345) (81e4e55) - pass own logger in historyApiFallback (#3373) (3ba2fa5)
- polling usage in watchFiles option (#3366) (2afb223)
- postpone initialize (#3467) (80087de)
- regression with
portandbonjour(c2805fe) - rename
pathtopathnameforclient.webSocketURL(#3466) (fd63e02) - respect
logLevelandlogProvideroption for proxy (#3257) (199baec) - show plugin name in progress log (#3337) (b8a0932)
v4.0.0-beta.3
4.0.0-beta.3 (2021-05-06)
Notes
Don't worry about a lot of changes, before the stable release, we will list all the changes and what you should do to migrate
⚠ BREAKING CHANGES
- the
https.caoption was removed in favor thehttps.cacertoption - the
devoption was renamed todevMiddleware - the
client.overlayoption istrueby default and show warnings by default - use server port for websocket connection by default, if you proxied
webpack-dev-server, please updatewebpack-clitov4.7.0(#3185) (0c3f817) - minimum supported Node.js version is
12.13.0
Features
- added
https.cacert(#3240) (b212a2c) - added more CLI options, please run
webpack server --helpto look at them (#3238) (469e558) - support
bonjouroptions (#3202) (5534583)
Bug Fixes
- improve warning message for
open(#3191) (d473fd9) - respect the
client.loggingoption for HMR logging (#3159) (6f3c6ba) - respect
client.needClientEntryandclient.needHotEntryoptions (#3178) (a2b6db9) - overlay with warnings (#3215) (7e18161)
- help description for options
- error description for options
- improve warning message for the
openoption
v4.0.0-beta.2
4.0.0-beta.2 (2021-04-06)
⚠ BREAKING CHANGES
- the
openPageoption and the--open-pageCLI 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 thehostoption value) and--open-app <browser>for CLI - the
useLocalIpoption was removed in favor{ host: 'local-ip' }, alternative you can provide values:local-ipv4for IPv4 andlocal-ipv6for IPv6 stdinoption was removed in favor--watch-options-stdininjectClientandinjectHotwas removed in favorclient.needClientEntryandclient.needHotEntry
Features
- added the
watchFilesoption, now you can reload server on file changes, for example{ watchFiles: ['src/**/*.php', 'public/**/*'] }(#3136) (d73213a) - added more CLI options, please run
webpack server --help(#3148) (03a2b27) - enable overlay by default (#3108) (5e05e48)
- you can specify multiple targets and browsers for the
openoption, i.e.{ open: { target: ['/my-page', '/my-other-page'], app: ['google-chrome', '--incognito'] } }(e3c2683)
Bug Fixes
-
/webpack-dev-serverurl shows list of files (#3101) (b3374c3) -
dev server client compatibility with
IE11/IE10/IE9(#3129) (1e3e656)- For
IE11/IE10you need polyfillfetch()andPromise, example:
module.exports = { entry: { entry: [ 'whatwg-fetch', 'core-js/features/promise', './entry.js' ], }, };
- For
IE9you need polyfillfetch()andPromiseand usesockjsfor communications (becauseWebSocketis not supported), example:
module.exports = { entry: { entry: [ 'whatwg-fetch', 'core-js/features/promise', './entry.js' ], }, devServer: { transportMode: 'sockjs', }, };
IE8 is not supported
- For
-
reduce number of
dependencies
v4.0.0-beta.1
4.0.0-beta.1 (2021-03-23)
⚠ BREAKING CHANGES
--hot-onlyoption was removed- default value of the
staticoption ispath.resolve(process.cwd(), 'public'), previouslypath.resolve(process.cwd(), 'static') - the
overlayoption was moved into theclientoption
Features
- add more negative flags -
--no-https,--no-http2,--no-compressand--no-history-api-fallback(#3070) (ebc966f) - allow
Booleantype for the--firewalloption (#3041) (6711c1d) - improve output for localhost and fix open (#2892) (9e65c24)
- improve output for IPv4 and IPv6 (#3092) (f362665)
Bug Fixes
- allow to open browser with
--open-page(#3032) (581ee07) - content security policy issue in client log (2de2e01)
- empty and multiple entries support (#2920) (45f6592)
- improve descriptions for CLI options (#3021) (7d339d4)
- improve descriptions for negative flags (#3029) (2e2190a)
- multi compiler mode with proxy (#2905) (247a92b)
- remove double brackets from the ws url when using raw IPv6 address (#2951) (2ec8160)
- show correct url in output status (#3013) (06b3d91)
- show detailed error in overlay (ba01b05)
- support
file:andchrome-extension:protocols in client (#2954) (163bdce) - warnings in overlay (#3054) (6144c8d)
- webpack-cli installation message (#2955) (b9ce07f)