mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 06:31:27 +00:00
chore: fix lint errors
This commit is contained in:
parent
1aa47b5edf
commit
052364c689
@ -52,7 +52,7 @@ function watch(builder: Builder) {
|
|||||||
})
|
})
|
||||||
// appWatcher.debug()
|
// appWatcher.debug()
|
||||||
appWatcher.watch(/(A|a)pp\.[a-z]{2,3}/, async () => {
|
appWatcher.watch(/(A|a)pp\.[a-z]{2,3}/, async () => {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 200))
|
await new Promise(resolve => setTimeout(resolve, 200))
|
||||||
await generate(builder)
|
await generate(builder)
|
||||||
})
|
})
|
||||||
appWatcher.watch('pages/', async () => {
|
appWatcher.watch('pages/', async () => {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import chokidar, { WatchOptions } from 'chokidar'
|
|
||||||
import { relative } from 'path'
|
import { relative } from 'path'
|
||||||
|
import chokidar, { WatchOptions } from 'chokidar'
|
||||||
|
|
||||||
export function createWatcher (dir: string|string[], options?: WatchOptions) {
|
export function createWatcher (dir: string|string[], options?: WatchOptions) {
|
||||||
const watcher = chokidar.watch(dir, {
|
const watcher = chokidar.watch(dir, {
|
||||||
|
Loading…
Reference in New Issue
Block a user