Webpack config
https://github.com/bilalmirza74/folio/tree/master
tried to config webpack for three.js with react need help
GitHub
GitHub - bilalmirza74/folio at master
Contribute to bilalmirza74/folio development by creating an account on GitHub.
10 Replies
@Jochem
right, I'll close your other post in #front-end , but like I said there, I don't use webpack
ok
also "help me" isn't an answerable question. You'll have to be more specific
bro my 3d models size/ bundle size was so big
to minimize and make small chunks
i want to use webpack and run build
so that i can host my website and that will work well on mobile devices
is there any alt ways to minimize my react website into small chunks?
@anyone
You could use dynamic imports, to only import the code as needs to be loaded instead of all at once
actually i did that already and that was working fine
but i want to check difference with webpack and lazy loading
@joao6246
?
Dynamic imports are lazy loading.
But whatever gains you expect to have are going to be the same whether you use Vite or Webpack, since this happens at runtime.
Research a process called "baking" your model where you convert geometry and materials into texture maps.
I've only got cursory experience with it, but my more experienced friends frequently devote time to it to slim down their assets.
Thanks bro