Static GitHub Issues

[823] About assets size limit

prev: issue with the offline plugin with CDN
next: Auth Guard issue (middleware)

I try to npm run build on my production server, but I got the warning:

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (300 kB).
This can impact web performance.
Assets:
  nuxt.bundle.fd4ef5d105dfb612b8bb.js (634 kB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recomm                             ended limit (300 kB). This can impact web performance.
Entrypoints:
  app (742 kB)
      manifest.a9503655cbefafecdb90.js
      vendor.bundle.a9503655cbefafecdb90.js
      nuxt.bundle.fd4ef5d105dfb612b8bb.js

and when I visit the site,I found that some js files is too big to impact the performance.

what should I do to make the files smaller, or can I push this files to cdn, this will be faster than my server

<!--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/c706">#c706</a>)</em></sub></div>