Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oversized application.js #924

Open
m27387 opened this issue Apr 16, 2024 · 3 comments
Open

Oversized application.js #924

m27387 opened this issue Apr 16, 2024 · 3 comments

Comments

@m27387
Copy link

m27387 commented Apr 16, 2024

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
Copy link
Author

m27387 commented Apr 16, 2024

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

@hossainemruz
Copy link
Member

hossainemruz commented May 10, 2024

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

@m27387
Copy link
Author

m27387 commented May 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants