Skip to content

Commit

Permalink
eleventy.reset Needs to run before config resets.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed May 10, 2024
1 parent 8400e40 commit d30b952
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d30b952

Please sign in to comment.