mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
fix: lint error in bin (#3668)
This commit is contained in:
parent
52780d3257
commit
68dfc60078
@ -1,10 +1,9 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
const parseArgs = require('minimist')
|
const parseArgs = require('minimist')
|
||||||
const chokidar = require('chokidar')
|
|
||||||
const consola = require('consola')
|
const consola = require('consola')
|
||||||
const { version } = require('../package.json')
|
const { version } = require('../package.json')
|
||||||
const { Nuxt, Builder } = require('..')
|
const { Nuxt, Builder } = require('..')
|
||||||
const { loadNuxtConfig, getLatestHost, nuxtConfigFile } = require('./common/utils')
|
const { loadNuxtConfig, getLatestHost } = require('./common/utils')
|
||||||
|
|
||||||
const argv = parseArgs(process.argv.slice(2), {
|
const argv = parseArgs(process.argv.slice(2), {
|
||||||
alias: {
|
alias: {
|
||||||
@ -50,9 +49,6 @@ if (argv.help) {
|
|||||||
process.exit(0)
|
process.exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load config once for chokidar
|
|
||||||
const nuxtConfig = loadNuxtConfig(argv)
|
|
||||||
|
|
||||||
// Start dev
|
// Start dev
|
||||||
let hooked = false
|
let hooked = false
|
||||||
let dev = startDev()
|
let dev = startDev()
|
||||||
|
Loading…
Reference in New Issue
Block a user