passing https.cert and https.key options to the webpack dev server
Signed-off-by: Luka Siric <siric.luka@gmail.com>
This commit is contained in:
@@ -60,7 +60,17 @@ export async function serveBundle(options: ServeOptions) {
|
||||
// See https://github.com/facebookincubator/create-react-app/issues/387.
|
||||
disableDotRule: true,
|
||||
},
|
||||
https: url.protocol === 'https:',
|
||||
https:
|
||||
url.protocol === 'https:'
|
||||
? {
|
||||
cert: options.frontendConfig.getOptionalString(
|
||||
'app.https.credentials.cert',
|
||||
),
|
||||
key: options.frontendConfig.getOptionalString(
|
||||
'app.https.credentials.key',
|
||||
),
|
||||
}
|
||||
: false,
|
||||
host,
|
||||
port,
|
||||
proxy: pkg.proxy,
|
||||
|
||||
Reference in New Issue
Block a user