mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
Fix missing dependency and corresponding importmap in example
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user