I created a project using vue-cli, added vuetify and vuetify-loader, and the final build size in production mode comes out large, as if all vuetify components were being imported. How to reduce production size?
UPD:
I am new to vue js and know little about it so far. I read somewhere that the Vuetify-loader analyzes the components used and connects them to reduce the assembly size, but this does not work for me, even without components the assembly size is high. Here is the output of npm run build:
/ Building for production...
WARNING Compiled with 1 warnings
warning
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
app (472 KiB)
css/chunk-vendors.bc54f729.css
js/chunk-vendors.97235f99.js
js/app.46f6da66.js
File Size Gzipped
dist\js\chunk-vendors.97235f99.js 228.10 KiB 76.89 KiB
dist\js\app.46f6da66.js 4.29 KiB 2.05 KiB
dist\service-worker.js 1.04 KiB 0.61 KiB
dist\precache-manifest.9058d5d1f866160 0.76 KiB 0.35 KiB
7d10739d8c19d6d73.js
dist\js\about.de05c083.js 0.40 KiB 0.28 KiB
dist\css\chunk-vendors.bc54f729.css 239.39 KiB 25.81 KiB

npm run buildcommand. I also recommend installing and configuringvue-cli-plugin-webpack-bundle-analyzer. Here's a good article on reducing Vue.js/webpack bundle size. Finally, if you use thebuildtask using thevue uiGUI, it has some good analytical outputs.