Hello,
I am getting started with Three.js and it has been splendid so far.
Now I would like to be able to upload my stuff to Itch io, but I do not understand how.
If I zip the whole directory, then there are to many files to upload, but if I zip it without them, I just get a grey square instead of my project.
I’m a bit confused! Are you referring to scene assets, three.js modules, or are you trying to build your own version of three.js? The link you shared seems to be about building the three.js library itself.
Oh sorry,
I am trying to make my Three.js project able to be uploaded to Itch io.
I can not do this right now, as the project contains to many individual files.
All of those files come from the node modules and I do not know how I would compress the project or use a different way, so that I would be able to upload it to Itch io
You don’t need to worry about node_modules, Vite handles bundling, tree-shaking, and optimization for you. If needed, you can further reduce bundle size by installing Vite plugins and customizing your vite.config.js file, depending on your project’s requirements.
When I put a config.js or a vite.config.js with this script in my directory, it does not work.
Do I have to write some sort of command?
If I write “vite --config config.js” (which the documentation says I should (Configuring Vite | Vite) I get the error “The term ‘vite’ is not recognized as the name of a cmdlet”.
This is how I did it:
![vite-project 5_18_2025 4_11_53 PM|601x230]
(upload://iZgQuy0ElTcQQPIBRgIS8aMQF46.png)