sreenaths / vue3-webcomponent-wrapper-demo

Demo app for vue3-webcomponent-wrapper
Apache License 2.0
3 stars 5 forks source link

How do I build the web component? #3

Open vonAnden opened 3 years ago

vonAnden commented 3 years ago

I use the following command to build with Vue 2 - vue-web-component-wrapper

npm run build -- --target wc --name new-v-router src\App.vue --inline-vue

When I run the same command in Vue 3 with vue3-webcomponent-wrapper I get the following message: "ERROR Vue 3 support of the web component target is still under development."

How do I build so I can use the web component in other web applications?

soann-dewasme commented 3 years ago

I tried with --target lib but I don't know how to make it work when built :( But works perfectly wih npm run serve