mazipan / pramuka-id

🌴 Kumpulan informasi digital mengenai berbagai materi pramuka, materi kenegaraan dan materi kecakapan umum
https://pramuka-id.vercel.app/
MIT License
98 stars 32 forks source link

chore: trying migrate to preact #56

Closed adibfirman closed 4 years ago

adibfirman commented 4 years ago

Trying moving to Preact related with this PR #39 , so these screenshots will compare of the bundle size, and Preact was making me surprised 😎 it cut half of each file size

Using React image

Using Preact image

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mazipan/buku-saku-pramuka/17vuau5v2
✅ Preview: https://buku-saku-pramuka-git-migrate-to-preact.mazipan.vercel.app

mazipan commented 4 years ago

Is the fast refresh on the local still works @adibfirman ?

adibfirman commented 4 years ago

@mazipan ahh, thanks for reminding me mas, i just check on the build process its working as well, but on the dev process, the fast refresh not working as well, so i will trying to fix it

mazipan commented 4 years ago

Maybe need to look this issue https://github.com/vercel/next.js/issues/13969

adibfirman commented 4 years ago

@mazipan thanks for the reference issue mas, will look it 🙏

adibfirman commented 4 years ago

mas @mazipan I just pushed a new commit, which I do a downgrade on nextjs version to 9.5.3, and it's working while dev and build itself, and preact working as well