mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
fix(nuxt3): reresolve app entrypoint when changes to app.vue
are detected (#363)
This commit is contained in:
parent
5d5516dd1d
commit
5d78c14ed6
@ -14,6 +14,9 @@ export async function build (nuxt: Nuxt) {
|
||||
watch(nuxt)
|
||||
nuxt.hook('builder:watch', async (event, path) => {
|
||||
if (event !== 'change' && /app|plugins/i.test(path)) {
|
||||
if (path.match(/app/i)) {
|
||||
app.main = null
|
||||
}
|
||||
await generateApp(nuxt, app)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user