We should be able to build the website

This commit is contained in:
2024-01-27 00:54:51 +01:00
parent 9ab449fa3e
commit 38165db828
3 changed files with 33 additions and 28 deletions

2
.gitignore vendored
View File

@@ -2,3 +2,5 @@ node_modules/
#backup files from Blender
*.blend1
dist/
dist/index.html

View File

@@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "vite build"
},
"author": "",
"license": "SEE LICENSE IN LICENSE",

View File

@@ -22,7 +22,7 @@ renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
//Here, we create/load every asset used, and add it in the scene
let assets = await addAssetsOnScene(scene);
addAssetsOnScene(scene).then(assets => {
/* --------------------- */
/* | MOVEMENT | */
@@ -56,3 +56,5 @@ function animate() {
}
console.log("Ready to render scene, placed objects : "+scene.children.length);
animate();
});