hugo-toha / toha

A Hugo theme for personal portfolio
https://hugo-toha.github.io
MIT License
979 stars 567 forks source link

Oversized application.js #924

Open m27387 opened 3 months ago

m27387 commented 3 months ago

Question

After initiating the website via "hugo server" command, the ESBuild and npm module would generate oversized application.js files (appx. 18mb).

Situation

I have tried it on my personal laptop (macOSx) and a Linux Ubuntu VM on it. The results remain the same.

image The screenshot above is a repo I directly forked from the original one without any modification.

image The screenshot above is the one I derived the SourceMap via ESBuilder's option, it shows the SourceMap occupied approximately 10MB.

I followed the instructions from both your GitHub README.md and "tour-guides" from Netlify. However, the oversized js situation still occurred.

Also, if any of you don't mind, feel free to check the js file on my github fork.

Thank you for any kind of help and assistance.

m27387 commented 3 months ago

I tried again on a Windows VM. The result remains the same 圖片

hossainemruz commented 2 months ago

On example site, it is only 1.3MB. I am suspecting you did not provide --minify flag during site build. image

m27387 commented 2 months ago

Thank you for your response. I did use --minify flag. However, I switched to another framework. Thanks again.