I'm new to Vue.js and want to make an SDK of Web Components using it. I can make one single web component like this:
main.js:
import Vue from 'vue';
import App from './App.vue';
import wrap from '@vue/web-component-wrapper';
const customElement = wrap(Vue, App);
window.customElements.define('sky-chat', customElement);
Cli command:
vue build --target wc --name sky-chat ./src/main.js
But this is just for one single component. How can I build a bunch of .vue files to separate web components in separate js files at once?
How can I generate a test html automatically containing all components inside it for testing in dist folder after building?
Thanks