File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,13 @@ module.exports = function(argv, cwd) {
49
49
runtimeConfig . useHotModuleReplacement = argv . hot || false ;
50
50
runtimeConfig . devServerKeepPublicPath = argv . keepPublicPath || false ;
51
51
52
- var host = argv . host ? argv . host : 'localhost' ;
53
- var port = argv . port ? argv . port : '8080' ;
54
- runtimeConfig . devServerUrl = `http${ runtimeConfig . devServerHttps ? 's' : '' } ://${ host } :${ port } /` ;
52
+ if ( typeof argv . public !== 'undefined' ) {
53
+ runtimeConfig . devServerUrl = argv . public ;
54
+ } else {
55
+ var host = argv . host ? argv . host : 'localhost' ;
56
+ var port = argv . port ? argv . port : '8080' ;
57
+ runtimeConfig . devServerUrl = `http${ runtimeConfig . devServerHttps ? 's' : '' } ://${ host } :${ port } /` ;
58
+ }
55
59
56
60
break ;
57
61
}
You can’t perform that action at this time.
0 commit comments