fix: lint error in bin (#3668)

This commit is contained in:
Clark Du 2018-08-09 22:35:55 +01:00 committed by GitHub
parent 52780d3257
commit 68dfc60078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,9 @@
#!/usr/bin/env node
const parseArgs = require('minimist')
const chokidar = require('chokidar')
const consola = require('consola')
const { version } = require('../package.json')
const { Nuxt, Builder } = require('..')
const { loadNuxtConfig, getLatestHost, nuxtConfigFile } = require('./common/utils')
const { loadNuxtConfig, getLatestHost } = require('./common/utils')
const argv = parseArgs(process.argv.slice(2), {
alias: {
@ -50,9 +49,6 @@ if (argv.help) {
process.exit(0)
}
// Load config once for chokidar
const nuxtConfig = loadNuxtConfig(argv)
// Start dev
let hooked = false
let dev = startDev()