4.2.0 (2021-09-09)
Features
- added the
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)
- 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 of Buffer
/string
/Path to file, using --https-*-reset
CLI options you can reset these options
https.pfx
/https.key
can be Object[]
, more information
https
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",
},
}
};
Bug Fixes
- accept connections with
file:
and chrome-extensions:
protocol by default (#3822) (138f064)
- close overlay on disconnection (#3825) (011bcf1)
- respect
https.cacert
option (#3820) (0002ebf)