File tree 2 files changed +5
-3
lines changed
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
20
20
21
21
Options:
22
22
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
26
27
```
27
28
28
29
All you need is an ` App.vue ` file:
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ program
117
117
. description ( 'serve a .js or .vue file in development mode with zero config' )
118
118
. option ( '-o, --open' , 'Open browser' )
119
119
. option ( '-c, --copy' , 'Copy local url to clipboard' )
120
+ . option ( '-p, --port <port>' , 'Port used by the server (default: 8080 or next available port)' )
120
121
. action ( ( entry , cmd ) => {
121
122
loadCommand ( 'serve' , '@vue/cli-service-global' ) . serve ( entry , cleanArgs ( cmd ) )
122
123
} )
You can’t perform that action at this time.
0 commit comments