EranGrin / vue-web-component-wrapper

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

Styles in vue component are not applied #16

Closed shwull closed 8 months ago

shwull commented 8 months ago

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

11111

EranGrin commented 8 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 8 months ago

oh, miss this. Thank you

EranGrin commented 8 months ago

Closing this Ticket

EranGrin commented 8 months ago

Missing one configuration attribute