Skip to main content

All Questions

2 votes
0 answers
2k views

Why Vue web component styles are not working?

I'm new to Vue and i've built a card game with Vue and Buefy which contains 4 components each of them having their own styles and functionalities. I want my entirely application to be builted into one ...
Matheus Henrique's user avatar
0 votes
1 answer
592 views

VueJS generate multiple web components

I'm currently using vue-cli-service to generate a web component like the following: vue-cli-service build --target wc --no-clean --name WidgetX ./src/widgets/WidgetX.vue --mode development (or test/...
Diogo Mendonça's user avatar
1 vote
0 answers
369 views

component flashes and disappears when using a build version of vue component (no issues when serving)

I have a vue app. When I use vue-cli to serve it locally (vue-cli-service serve), the app functions normally. If I build as a webcomponent: vue-cli-service build --target wc --name my-app ./src/App....
darnitdiy's user avatar
  • 559
4 votes
1 answer
5k views

How to properly use slot inside of vue js web component and apply styles

I have come across an issue where the implementation of slots in a webcomponent is not functioning as expected. My understanding of Web Components, Custom Elements and Slots is that elements rendered ...
Adam H's user avatar
  • 1,828
1 vote
0 answers
46 views

Include Style From NPM Package Component Into WebComponent

I am building a webcomponent package using Vue CLI 3 and single file components. We have a shared package our-awesome-shared-controls that contain basic site components such as a collapsible container....
Adam H's user avatar
  • 1,828
5 votes
3 answers
2k views

How do I ensure the vuex store gets included in my build?

I have a Vue application that is using vue cli 3. I'm following the guide here to try building my app with vue-cli-service build --target wc --name my-element [entry] To test the output, I have an ...
Kecoey's user avatar
  • 211
4 votes
2 answers
4k views

How to integrate Tailwindcss into a VUE CLI 3 project's web component?

Here is what I have: A VUE ClI 3 Project with lots of components and stuff going on. What I need: Is a way to reuse this project and to include it on my client's website very simple. I am thinking ...
christophrumpel's user avatar
1 vote
1 answer
2k views

Bundle the vue dependency into a web component build using vue-cli 3

I'm using vue-cli 3 to bundle my vue components into web components, using a command simmilar like that: package.json "build:wc": "vue-cli-service build --target wc-async --name webcomponent-global '...
Philip Feldmann's user avatar