webpack-dev-server
Advanced tools
Changelog
4.5.0 (2021-11-13)
--web-socket-server-type
option for CLI (#4001) (17c390a)https
/http2
option, migration guide for https
and migration guide for http2
(because we use spdy
for http2 due express
doesn't support http2) (#4003) (521cf85)Changelog
4.4.0 (2021-10-27)
server
option, now you can pass server options, example { server: { type: 'http', options: { maxHeaderSize: 32768 } } }
, available options for http
and https
, note - for http2
is used spdy
, options specified in the server.options
option take precedence over https
/http2
options (#3940) (a70a7ef)client.reconnect
option (#3912) (5edad76)startCallback
and endCallback
(#3969) (b0928ac)Changelog
4.2.0 (2021-09-09)
http.ca
option (CLI option added too) (should be used instead cacert
, because we will remove it in the next major release in favor the https.ca
option)https.crl
option (CLI options added too), more informationhttps.ca
/https.cacert
/ https.cert
/https.crl
/https.key
/https.pfx
options are now accept Arrays of Buffer
/string
/Path to file, using --https-*-reset
CLI options you can reset these optionshttps.pfx
/https.key
can be Object[]
, 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",
},
}
};