mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix: lint error in bin
This commit is contained in:
parent
4cc4eefcf8
commit
fd42610862
@ -82,19 +82,19 @@ if (options.mode !== 'spa') {
|
|||||||
} else {
|
} else {
|
||||||
const s = Date.now()
|
const s = Date.now()
|
||||||
|
|
||||||
nuxt.hook('generate:distRemoved', function() {
|
nuxt.hook('generate:distRemoved', function () {
|
||||||
debug('Destination folder cleaned')
|
debug('Destination folder cleaned')
|
||||||
})
|
})
|
||||||
|
|
||||||
nuxt.hook('generate:distCopied', function() {
|
nuxt.hook('generate:distCopied', function () {
|
||||||
debug('Static & build files copied')
|
debug('Static & build files copied')
|
||||||
})
|
})
|
||||||
|
|
||||||
nuxt.hook('generate:page', function(page) {
|
nuxt.hook('generate:page', function (page) {
|
||||||
debug('Generate file: ' + page.path)
|
debug('Generate file: ' + page.path)
|
||||||
})
|
})
|
||||||
|
|
||||||
nuxt.hook('generate:done', function(generator, errors) {
|
nuxt.hook('generate:done', function (generator, errors) {
|
||||||
const duration = Math.round((Date.now() - s) / 100) / 10
|
const duration = Math.round((Date.now() - s) / 100) / 10
|
||||||
|
|
||||||
debug(`HTML Files generated in ${duration}s`)
|
debug(`HTML Files generated in ${duration}s`)
|
||||||
|
@ -77,7 +77,7 @@ chokidar
|
|||||||
.on('all', () => {
|
.on('all', () => {
|
||||||
debug('[nuxt.config.js] changed')
|
debug('[nuxt.config.js] changed')
|
||||||
needToRestart = true
|
needToRestart = true
|
||||||
|
|
||||||
dev = dev.then((instance) => {
|
dev = dev.then((instance) => {
|
||||||
if (needToRestart === false) return instance
|
if (needToRestart === false) return instance
|
||||||
needToRestart = false
|
needToRestart = false
|
||||||
|
@ -73,19 +73,19 @@ const generateOptions = {
|
|||||||
|
|
||||||
const s = Date.now()
|
const s = Date.now()
|
||||||
|
|
||||||
nuxt.hook('generate:distRemoved', function() {
|
nuxt.hook('generate:distRemoved', function () {
|
||||||
debug('Destination folder cleaned')
|
debug('Destination folder cleaned')
|
||||||
})
|
})
|
||||||
|
|
||||||
nuxt.hook('generate:distCopied', function() {
|
nuxt.hook('generate:distCopied', function () {
|
||||||
debug('Static & build files copied')
|
debug('Static & build files copied')
|
||||||
})
|
})
|
||||||
|
|
||||||
nuxt.hook('generate:page', function(page) {
|
nuxt.hook('generate:page', function (page) {
|
||||||
debug('Generate file: ' + page.path)
|
debug('Generate file: ' + page.path)
|
||||||
})
|
})
|
||||||
|
|
||||||
nuxt.hook('generate:done', function(generator, errors) {
|
nuxt.hook('generate:done', function (generator, errors) {
|
||||||
const duration = Math.round((Date.now() - s) / 100) / 10
|
const duration = Math.round((Date.now() - s) / 100) / 10
|
||||||
|
|
||||||
debug(`HTML Files generated in ${duration}s`)
|
debug(`HTML Files generated in ${duration}s`)
|
||||||
|
Loading…
Reference in New Issue
Block a user