Releases: webpack/webpack-dev-server
Releases · webpack/webpack-dev-server
v4.7.0
4.7.0 (2021-12-21)
Features
- added the
setupMiddlewares
option and deprecatedonAfterSetupMiddleware
andonBeforeSetupMiddleware
options (#4068) (c13aa56) - added types (8f02c3f)
- show deprecation warning for
cacert
option (#4115) (c73ddfb)
Bug Fixes
- add description for
watchFiles
options (#4057) (75f3817) - allow passing options for custom server (#4110) (fc8bed9)
- correct schema for
ClientLogging
(#4084) (9b7ae7b) - mark
--open-app
deprecated in favor of--open-app-name
(#4091) (693c28a) - show deprecation warning for both
https
andhttp2
(#4069) (d8d5d71) - update
--web-socket-server
description (#4098) (65955e9) - update
listen
andclose
deprecation warning message (#4097) (b217a19) - update descriptions of
https
andserver
options (#4094) (f97c9e2)
v4.6.0
v4.5.0
4.5.0 (2021-11-13)
Features
- add
--web-socket-server-type
option for CLI (#4001) (17c390a) - show deprecation warning for
https
/http2
option, migration guide forhttps
and migration guide forhttp2
(because we usespdy
for http2 dueexpress
doesn't support http2) (#4003) (521cf85)
Bug Fixes
v3.11.3
v4.4.0
4.4.0 (2021-10-27)
Features
- added the
server
option, now you can pass server options, example{ server: { type: 'http', options: { maxHeaderSize: 32768 } } }
, available options forhttp
andhttps
, note - forhttp2
is usedspdy
, options specified in theserver.options
option take precedence overhttps
/http2
options (#3940) (a70a7ef) - added the
client.reconnect
option (#3912) (5edad76) - improve error handling within
startCallback
andendCallback
(#3969) (b0928ac)
Bug Fixes
v4.3.1
v4.3.0
v4.2.1
v4.2.0
4.2.0 (2021-09-09)
Features
- added the
http.ca
option (CLI option added too) (should be used insteadcacert
, because we will remove it in the next major release in favor thehttps.ca
option) - added the
https.crl
option (CLI options added too), more information https.ca
/https.cacert
/https.cert
/https.crl
/https.key
/https.pfx
options are now accept Arrays ofBuffer
/string
/Path to file, using--https-*-reset
CLI options you can reset these optionshttps.pfx
/https.key
can beObject[]
, more informationhttps
options 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",
},
}
};