Skip to content

Commit

Permalink
fix: handle nuxt static command (#7647)
Browse files Browse the repository at this point in the history
[release]
  • Loading branch information
Atinux committed Jul 1, 2020
1 parent 05fe682 commit d8dace9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/run.js
Expand Up @@ -28,7 +28,7 @@ export default async function run (_argv, hooks = {}) {
let cmd = await getCommand(argv[0])

// Matching `nuxt` or `nuxt [dir]` or `nuxt -*` for `nuxt dev` shortcut
if (!cmd && (!argv[0] || argv[0][0] === '-' || fs.existsSync(argv[0]))) {
if (!cmd && (!argv[0] || argv[0][0] === '-' || (argv[0] !== 'static' && fs.existsSync(argv[0])))) {
argv.unshift('dev')
cmd = await getCommand('dev')
}
Expand Down

0 comments on commit d8dace9

Please sign in to comment.