pmotschmann / Evolve

An incremental game about evolving a civilization
Mozilla Public License 2.0
858 stars 371 forks source link

[PR available] Size warnings in build #981

Open StoneCypher opened 1 year ago

StoneCypher commented 1 year ago

There are a series of unfortunate size warnings in the webpack build. These can be disabled.

PR inbound.

$ npm run build

> evolveidle@1.3.9 build
> npx webpack --config webpack.evolve.prod.js && npx webpack --config webpack.wiki.prod.js

asset main.js 1.77 MiB [compared for emit] [minimized] [big] (name: main)
orphan modules 3.03 MiB [orphan] 23 modules
./src/main.js + 23 modules 3.56 MiB [built] [code generated]

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  main.js (1.77 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.77 MiB)
      main.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 5.76.1 compiled with 3 warnings in 13099 ms
asset wiki.js 1.87 MiB [compared for emit] [minimized] [big] (name: main)
orphan modules 3.66 MiB [orphan] 47 modules
./src/wiki/wiki.js + 47 modules 3.67 MiB [built] [code generated]

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  wiki.js (1.87 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.87 MiB)
      wiki.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 5.76.1 compiled with 3 warnings in 12686 ms