MaxT
Explore posts from serversSSG and the size of entry.js file
Hello,
I am on the stable version of NUXT3.
When I don't have the pages folder, and only have the app.vue file, the output of run npm generate produces the entry.randomchars.js file with the size of 33.7 kb gzipped. If I delete the app.vue file, and create the pages/index.vue page with the same exact content (just a single paragraph) and do a generate - the size of that file goes up to 50 kb gzipped. If I create another page, like pages/about.vue and generate again, the file size goes up even hight.
Why is that happening? I am not even using any components that would need any hydration on the client. Shouldn't the file stay fixed at the same 33.7 kb to include the runtime for Vue3 and Nuxt3? Why is it growing in size?
Thank you!
31 replies