mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
hotfix: nuxt-start tries to build instead of starting (#4384)
This commit is contained in:
parent
0cd49492e0
commit
b12141b99a
@ -2,4 +2,7 @@
|
|||||||
const { name } = require('../package.json')
|
const { name } = require('../package.json')
|
||||||
const isEdge = name.indexOf('-edge') !== -1
|
const isEdge = name.indexOf('-edge') !== -1
|
||||||
const cli = require(isEdge ? '@nuxt/cli-edge' : '@nuxt/cli')
|
const cli = require(isEdge ? '@nuxt/cli-edge' : '@nuxt/cli')
|
||||||
|
if (process.argv[2] !== 'start') {
|
||||||
|
process.argv.splice(2, 0, 'start')
|
||||||
|
}
|
||||||
cli.run()
|
cli.run()
|
||||||
|
Loading…
Reference in New Issue
Block a user