Nuxt Disable Generation of Manifest.js for Static Site Generation

April 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:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.