File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ serve a .js or .vue file in development mode with zero config
2020
2121Options:
2222
23- -o, --open Open browser
24- -c, --copy Copy local url to clipboard
25- -h, --help output usage information
23+ -o, --open Open browser
24+ -c, --copy Copy local url to clipboard
25+ -p, --port <port> Port used by the server (default: 8080 or next available port)
26+ -h, --help Output usage information
2627```
2728
2829All you need is an ` App.vue ` file:
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ program
117117 . description ( 'serve a .js or .vue file in development mode with zero config' )
118118 . option ( '-o, --open' , 'Open browser' )
119119 . option ( '-c, --copy' , 'Copy local url to clipboard' )
120+ . option ( '-p, --port <port>' , 'Port used by the server (default: 8080 or next available port)' )
120121 . action ( ( entry , cmd ) => {
121122 loadCommand ( 'serve' , '@vue/cli-service-global' ) . serve ( entry , cleanArgs ( cmd ) )
122123 } )
You can’t perform that action at this time.
0 commit comments