mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 10:27:15 +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() {
|
async generateRoutesAndFiles() {
|
||||||
consola.debug(`Generating nuxt files`)
|
consola.debug(`Generating nuxt files`)
|
||||||
|
|
||||||
|
this.plugins.length = 0
|
||||||
this.plugins.push.apply(this.plugins, this.normalizePlugins())
|
this.plugins.push.apply(this.plugins, this.normalizePlugins())
|
||||||
|
|
||||||
// -- Templates --
|
// -- Templates --
|
||||||
|
Loading…
Reference in New Issue
Block a user