File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export default backloop ;
2+ declare function backloop ( hostname ?: string ) : {
3+ name : string ;
4+ apply : string ;
5+ config ( options : any ) : void ;
6+ } ;
Original file line number Diff line number Diff line change 44 */
55import backloopHttpsOptions from 'backloop.dev' ;
66
7- function backloop ( hostname = 'whatever' ) {
7+ function backloop ( hostname = 'whatever' , port ) {
88 console . log ( { hostname} ) ;
99 return {
1010 name : 'backloop.dev' ,
1111 apply : 'serve' ,
1212 config ( options ) {
1313 options . server = options . server || { } ;
14- options . server . host = `${ hostname } .backloop.dev` ,
15- options . server . https = backloopHttpsOptions
14+ options . server . host = `${ hostname } .backloop.dev` ;
15+ options . server . https = backloopHttpsOptions ;
16+ options . server . port = port || options . server . port ;
1617 }
1718 }
1819}
You can’t perform that action at this time.
0 commit comments