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
Mirza
MirzaOP15mo ago
@Jochem
Jochem
Jochem15mo ago
right, I'll close your other post in #front-end , but like I said there, I don't use webpack
Mirza
MirzaOP15mo ago
ok
Jochem
Jochem15mo ago
also "help me" isn't an answerable question. You'll have to be more specific
Mirza
MirzaOP15mo ago
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
Joao
Joao15mo ago
You could use dynamic imports, to only import the code as needs to be loaded instead of all at once
Mirza
MirzaOP15mo ago
actually i did that already and that was working fine but i want to check difference with webpack and lazy loading @joao6246
Joao
Joao15mo ago
? 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.
dys 🐙
dys 🐙15mo ago
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.
Mirza
MirzaOP15mo ago
Thanks bro
Want results from more Discord servers?
Add your server