I have created an app using Vue CLI 3, I have been watching the build and it warned me there are large files:
$ vue-cli-service build --modern --mode production --dest dist --target app --dashboard
- Building legacy bundle for production...
WARNING Compiled with 2 warnings12:40:54 PM
warning
asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
js/chunk-vendors-legacy.443e5f8f.js (1.44 MiB)
warning
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
app (1.46 MiB)
js/chunk-vendors-legacy.443e5f8f.js
js/app-legacy.4b3e4352.js
I have no idea how to reduce this file size, it comes completely from external libs:
I assumed it could not be gotten rid of. Just today I did the "Coverage" tool in chrome and it shows that its mostly unused. How do I get rid of this unused code to make my app load faster?
I am already gzipping, my question is more about how to actually make those files tree-shake to drop in file size.