diff --git a/src/Eleventy.js b/src/Eleventy.js index ddd4ee118..7c7be271c 100644 --- a/src/Eleventy.js +++ b/src/Eleventy.js @@ -852,9 +852,10 @@ Arguments: // reset and reload global configuration if (isResetConfig) { - await this.resetConfig(); // important: run this before config resets otherwise the handlers will disappear. await this.config.events.emit("eleventy.reset"); + + await this.resetConfig(); } await this.restart();