2
0
Эх сурвалжийг харах

Add passthrough copy for favicon and enable incremental watch in Eleventy

codecalm 7 сар өмнө
parent
commit
a30ac7d194
2 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 2 2
      eleventy.config.mjs
  2. 1 1
      package.json

+ 2 - 2
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
 	 */

+ 1 - 1
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",