Static GitHub Issues

[2643] nuxt generate: WARNING in asset size limit

prev: router.afterEach => nextTick doesn't reflect whole application mount
next: unknown descriptor when using picture tag or srcset

Hey there,

I have around 10 json files filled with posts. I only load one of those json files in the application at the beginning (commited into the store). The others are there for pagination (clicking on next page loads next json file filled with posts).

Now I'm trying to build static html files with nuxt generate and i get this following warning:

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (300 kB).
This can impact web performance.
Assets:
  app.491c5707d886bb0422e7.js (828 kB)

I see that all 10 json files are being loaded inside this generated app.js file, which makes it huge, but the data from these posts is also being stored inside each of the created static html files.

I wonder why this is happening, am I missing something? Maybe i don't get it right, but I don't know why the data from the store is in each static html file, but also in the app.js which each static file is loading.

Many thanks in advance!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2298">#c2298</a>)</em></sub></div>