mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxi): respect --port
arg (#919)
This commit is contained in:
parent
81293ff195
commit
8f38280978
@ -20,7 +20,8 @@ export default defineNuxtCommand({
|
|||||||
const server = createServer()
|
const server = createServer()
|
||||||
const listener = await server.listen({
|
const listener = await server.listen({
|
||||||
clipboard: args.clipboard,
|
clipboard: args.clipboard,
|
||||||
open: args.open || args.o
|
open: args.open || args.o,
|
||||||
|
port: args.port || args.p
|
||||||
})
|
})
|
||||||
|
|
||||||
const rootDir = resolve(args._[0] || '.')
|
const rootDir = resolve(args._[0] || '.')
|
||||||
|
Loading…
Reference in New Issue
Block a user