mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
refactor: prevent wrapper Promise
This commit is contained in:
parent
c15543cb83
commit
7a301bed6c
@ -61,7 +61,7 @@ export default class Builder {
|
|||||||
|
|
||||||
// Stop watching on nuxt.close()
|
// Stop watching on nuxt.close()
|
||||||
if (this.options.dev) {
|
if (this.options.dev) {
|
||||||
this.nuxt.hook('close', async () => { await this.unwatch() })
|
this.nuxt.hook('close', () => this.unwatch())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -519,11 +519,13 @@ export default class Builder {
|
|||||||
r(src, 'layouts/*.vue'),
|
r(src, 'layouts/*.vue'),
|
||||||
r(src, 'layouts/**/*.vue')
|
r(src, 'layouts/**/*.vue')
|
||||||
]
|
]
|
||||||
this._nuxtPages && patterns.push(
|
if (this._nuxtPages) {
|
||||||
r(src, 'pages'),
|
patterns.push(
|
||||||
r(src, 'pages/*.vue'),
|
r(src, 'pages'),
|
||||||
r(src, 'pages/**/*.vue')
|
r(src, 'pages/*.vue'),
|
||||||
)
|
r(src, 'pages/**/*.vue')
|
||||||
|
)
|
||||||
|
}
|
||||||
const options = Object.assign({}, this.options.watchers.chokidar, {
|
const options = Object.assign({}, this.options.watchers.chokidar, {
|
||||||
ignoreInitial: true
|
ignoreInitial: true
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user