Demonstrates how ShadowDOM based WebComponents functionality should work with VueCLI 3 based projects.
This project uses vue-custom-element for WebComponent functionality, however similar principles should apply for the native web-component-wrapper.
Working example: https://bryanvaz.github.io/vue-custom-element-shadow-examples/
yarn install
yarn watch
Note: Vuetify does not natively support ShadowDOM-based WebComponents, and therefore does not work with HMR.
yarn build:lib
yarn http demo
- The built library is quite large due to Vuetify including its entire code base into the WebComponent. This is an example of how a prebuilt UI library should used a-la-cart to avoid bloat.