webpack-encore
webpack-encore copied to clipboard
Dev server HTTPS options are overwritten with --https set
When --https is set using command line, https options in dev server configuration are overriden and generated certificate is used instead of the one provided.
If --https is not set using command line but https options are set in dev server configuration, entrypoints.json are generated using http:// prefix instead of https://. Dev server serves all content over https as expected.
I could accept a need to use both config and cli flag, just that having the CLI flag should not overwrite dev server config.
In webpack.config.js
// ...
.configureDevServerOptions(config => {
config.http2 = true;
config.https = {
key: '/etc/ssl/server.key',
cert: '/etc/ssl/server.crt'
}
})
// ...