mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix: Duplicate declaration plugin when add/remove file in dev mode (#4278)
This commit is contained in:
parent
1a154e8188
commit
3f2b10ea0c
@ -207,6 +207,7 @@ export default class Builder {
|
||||
async generateRoutesAndFiles() {
|
||||
consola.debug(`Generating nuxt files`)
|
||||
|
||||
this.plugins.length = 0
|
||||
this.plugins.push.apply(this.plugins, this.normalizePlugins())
|
||||
|
||||
// -- Templates --
|
||||
|
Loading…
Reference in New Issue
Block a user