fix: lint error in bin

This commit is contained in:
Clark Du 2017-11-24 10:35:03 +08:00 committed by Pooya Parsa
parent 4cc4eefcf8
commit fd42610862
3 changed files with 9 additions and 9 deletions

View File

@ -82,19 +82,19 @@ if (options.mode !== 'spa') {
} else {
const s = Date.now()
nuxt.hook('generate:distRemoved', function() {
nuxt.hook('generate:distRemoved', function () {
debug('Destination folder cleaned')
})
nuxt.hook('generate:distCopied', function() {
nuxt.hook('generate:distCopied', function () {
debug('Static & build files copied')
})
nuxt.hook('generate:page', function(page) {
nuxt.hook('generate:page', function (page) {
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
debug(`HTML Files generated in ${duration}s`)

View File

@ -77,7 +77,7 @@ chokidar
.on('all', () => {
debug('[nuxt.config.js] changed')
needToRestart = true
dev = dev.then((instance) => {
if (needToRestart === false) return instance
needToRestart = false

View File

@ -73,19 +73,19 @@ const generateOptions = {
const s = Date.now()
nuxt.hook('generate:distRemoved', function() {
nuxt.hook('generate:distRemoved', function () {
debug('Destination folder cleaned')
})
nuxt.hook('generate:distCopied', function() {
nuxt.hook('generate:distCopied', function () {
debug('Static & build files copied')
})
nuxt.hook('generate:page', function(page) {
nuxt.hook('generate:page', function (page) {
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
debug(`HTML Files generated in ${duration}s`)