From a30ac7d194b594e52519efaaf84e112cb0e033a7 Mon Sep 17 00:00:00 2001 From: codecalm Date: Mon, 27 Jan 2025 22:52:17 +0100 Subject: [PATCH] Add passthrough copy for favicon and enable incremental watch in Eleventy --- eleventy.config.mjs | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eleventy.config.mjs b/eleventy.config.mjs index 8f9d91b9b..d1b5fe24e 100644 --- a/eleventy.config.mjs +++ b/eleventy.config.mjs @@ -14,6 +14,8 @@ export default function (eleventyConfig) { eleventyConfig.setWatchThrottleWaitTime(100); + eleventyConfig.addPassthroughCopy("src/pages/favicon.ico"); + eleventyConfig.addPlugin(EleventyRenderPlugin, { accessGlobalData: true, }); @@ -29,8 +31,6 @@ export default function (eleventyConfig) { eleventyConfig.addWatchTarget("dist"); } - eleventyConfig.addPassthroughCopy("favicon.ico"); - /** * Data */ diff --git a/package.json b/package.json index abc5dc081..efc0d879f 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "format:write": "prettier --write src/**/*.{js,scss} --cache", "illustrations": "node .build/import-illustrations.js", "build:html": "eleventy", - "watch:html": "eleventy --watch" + "watch:html": "eleventy --watch --incremental" }, "repository": { "type": "git",