EranGrin / vue-web-component-wrapper

vue3 - web component wrapper plugin
https://erangrin.github.io/vue-web-component-wrapper/
50 stars 5 forks source link

Styles in vue component are not applied #16

Closed shwull closed 4 months ago

shwull commented 5 months ago

https://stackblitz.com/edit/vitejs-vite-exevhh?file=src%2Fmain.js,src%2FTest.vue,src%2FApp.vue&terminal=dev

11111

EranGrin commented 4 months ago

Hi There, You only missing one configuration attribute

in the vite config you should add the custom element true

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue({
    customElement: true,
  })],
})
shwull commented 4 months ago

oh, miss this. Thank you

EranGrin commented 4 months ago

Closing this Ticket

EranGrin commented 4 months ago

Missing one configuration attribute