From 3f2b10ea0c707732ccc1b81dad094d969a7de2f9 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Tue, 6 Nov 2018 10:50:38 +0000 Subject: [PATCH] fix: Duplicate declaration plugin when add/remove file in dev mode (#4278) --- packages/builder/src/builder.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/builder/src/builder.js b/packages/builder/src/builder.js index 733063da34..140790d5a5 100644 --- a/packages/builder/src/builder.js +++ b/packages/builder/src/builder.js @@ -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 --