]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
build: fix dev script
authorEvan You <yyx990803@gmail.com>
Wed, 2 Oct 2019 15:39:00 +0000 (11:39 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 2 Oct 2019 15:39:00 +0000 (11:39 -0400)
scripts/dev.js

index f266697d68697574d42b9c90413f4d4ab2990064..e7e403785932cec68999bce9b44b3442a6ab2e72 100644 (file)
@@ -20,7 +20,7 @@ const execa = require('execa')
 const { targets, fuzzyMatchTarget } = require('./utils')
 
 const args = require('minimist')(process.argv.slice(2))
-const target = fuzzyMatchTarget(args._[0] || 'vue')
+const target = args._.length ? fuzzyMatchTarget(args._)[0] : 'vue'
 const formats = args.formats || args.f
 
 execa(