mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +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.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)
|
||||
})
|
||||
appWatcher.watch('pages/', async () => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import chokidar, { WatchOptions } from 'chokidar'
|
||||
import { relative } from 'path'
|
||||
import chokidar, { WatchOptions } from 'chokidar'
|
||||
|
||||
export function createWatcher (dir: string|string[], options?: WatchOptions) {
|
||||
const watcher = chokidar.watch(dir, {
|
||||
|
Loading…
Reference in New Issue
Block a user