tree shake vuetify imports to minimise bundle size

This commit is contained in:
liamcottle 2024-12-26 14:53:52 +13:00
parent 178cfde6c8
commit b8725350c6
4 changed files with 45 additions and 9 deletions

View file

@ -10,12 +10,7 @@ import App from './components/App.vue';
// init vuetify
import 'vuetify/styles';
import { createVuetify } from 'vuetify';
import * as components from 'vuetify/components';
import * as directives from 'vuetify/directives';
const vuetify = createVuetify({
components,
directives,
})
const vuetify = createVuetify();
// provide axios globally
window.axios = axios;