Nuxt Disable Generation of Manifest.js for Static Site Generation

Apr 12, 2022

I have around 20,000 static pages generated and the size of manifest.js (not manifest.json) is about 3MB and contains all the generated path.

I am not quite sure what is the purpose of the file, but it can be disabled by editing nuxt.config.js (not documented at generate doc).

const config = {  generate: {    manifest: false  },}

This save 3MB of download per page request. Static Site Generation and Server Side Render seems to work fine without manifest.js.

References:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.