How can I build vuetify with only few components? My env doesn't allow tree-shaking. #12948
Unanswered
rockmandash
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a very legacy project with a super complex build script, I can't use tree-shaking for this project.
I've already shipped the entire vuetify to the client, it's so slow 😭.
So I came up with an idea, I can clone the vuetify repo, and delete unused components, and republish it to npm.
But I don't understand which build script should I type.
Currently, I only need
<v-app>
(of course) and<v-date-picker>
this is the one I'm using.I think I just need to keep these two lines in the
vuetify/packages/vuetify/src/components/index.ts
file.vuetify/packages/vuetify/src/components/index.ts
Line 1 in ab936e2
vuetify/packages/vuetify/src/components/index.ts
Line 26 in ab936e2
But what build command should I run right now?
Beta Was this translation helpful? Give feedback.
All reactions