Skip to content

Commit 4c19e47

Browse files
authored
Update parse-runtime.js
Check also the serverType cli param to define if the devServer is in https mode
1 parent 1d63fed commit 4c19e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config/parse-runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = function(argv, cwd) {
4141
runtimeConfig.verbose = true;
4242

4343
runtimeConfig.useDevServer = true;
44-
runtimeConfig.devServerHttps = argv.https;
44+
runtimeConfig.devServerHttps = argv.https || argv.serverType === 'https' ;
4545
runtimeConfig.devServerKeepPublicPath = argv.keepPublicPath || false;
4646

4747
if (typeof argv.public === 'string') {

0 commit comments

Comments
 (0)