t-morisawa/scamper

ファイルサイズ大きい問題

Opened this issue · 2 comments

目的

  • Netlifyで運用するには重すぎ
  • バンドルされたjsのサイズが大きいと怒られているのでなんとかしたい
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  912ec66d7572ff821749319396470bde.svg (434 KiB)
  undefined.js (1.35 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (1.35 MiB)
      undefined.js


WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

ブラウザに以下のような警告が出ているので参考にしてみるといいかもしれない

webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

こういうパッケージで解析もできるが、まずsoucemapを生成しないとダメそう。
https://www.npmjs.com/package/source-map-explorer