From 572b62383be2caa99723ad9f0170684edd616978 Mon Sep 17 00:00:00 2001 From: Diego Marcos Segura Date: Sun, 1 Jun 2025 01:58:33 -0700 Subject: [PATCH] Fix missing dependency and corresponding importmap in example --- examples/particle-simulation/index.html | 1 + scripts/copy-site-files.js | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/particle-simulation/index.html b/examples/particle-simulation/index.html index e94d622..5e0c656 100644 --- a/examples/particle-simulation/index.html +++ b/examples/particle-simulation/index.html @@ -18,6 +18,7 @@ { "imports": { "three": "/examples/js/vendor/three/build/three.module.js", + "lil-gui": "/examples/js/vendor/lil-gui/dist/lil-gui.esm.js", "@forge-gfx/forge": "/dist/forge.module.js" } } diff --git a/scripts/copy-site-files.js b/scripts/copy-site-files.js index 4d78829..6003e97 100644 --- a/scripts/copy-site-files.js +++ b/scripts/copy-site-files.js @@ -25,5 +25,6 @@ await copyFile("examples.html", "docs/examples/index.html"); await rename("docs/examples/viewer", "docs/viewer"); await mkdir("docs/examples/vendor", { recursive: true }); copyDir("node_modules/three", "docs/examples/js/vendor/three"); +copyDir("node_modules/lil-gui", "docs/examples/js/vendor/lil-gui"); copyDir("dist", "docs/dist"); console.log("Site generated in docs directory.");