vuetify-module
vuetify-module copied to clipboard
Treeshaking static deployment
Module version 1.11.3
Describe the bug
Treeshaking seems to not be functioning when deployment target is static
To Reproduce
- Run
create nuxt-app, select Vuetify as UI framework, select Universal rendering mode, select Static deployment target, skip all other options - Run
yarn generate- resulting dist folder is 1.47MB in size (yarn build --analyzereveals 627k of that is Vuetify) - Add
treeShake: trueto Vuetify block ofnuxt.config.js- no difference - View page source on default pages (index.html, inspire/index.html) are chock full of css - this must not be treeshaken?
- Applying this hack cuts things down to size - seeming to further demonstrate built-in treeshaking is not working?
Expected behavior Treeshaking to function as expected
Same issue. This is also confirmed by https://stackoverflow.com/questions/60022986/smallest-possible-vuetify-css-js-size-0-5mb