Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup for Vuetify 2 in webpack? #257

Open
gregveres opened this issue Jun 10, 2022 · 1 comment
Open

Setup for Vuetify 2 in webpack? #257

gregveres opened this issue Jun 10, 2022 · 1 comment

Comments

@gregveres
Copy link
Contributor

I have been converting my app to a monorepo for the last while, trying to figure out the right way to decompose the app into libraries to support breaking the app into 4 micro front ends.
I thought I was on a good path until I looked at the size of the bundles that are being created. My initial app bundle is about 5x the size of the original app bundle before using Nx. But that is a question for another discussion.

I am noticing that my vendor chunk is about double the size of the pre-nx vendor chunk. I think I have narrowed it down to vuetify doubling in size. It doubled in size becuase I only use about half of the components. In the pre-nx version, I am using the vuetify plugin that properly configures webpack to pull out only the components that I use.

Has anyone figured out how to include the vuetify loader so that it properly prunes the components that you don't use?

@ZachJW34
Copy link
Owner

Have you tried modifying the webpack confit via configure-webpack.js? You should be able to push any loaders or plugins you want, including the vuetify ones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants