Added debug serve command

This commit is contained in:
Joel Collins 2020-03-31 13:52:17 +01:00
parent 3e21cd4680
commit a9239ab898
5 changed files with 37 additions and 6 deletions

View file

@ -0,0 +1,18 @@
<template>
<div id="app">
<VueWebComponent/>
</div>
</template>
<script>
import VueWebComponent from './components/VueWebComponent.vue'
export default {
name: 'app',
components: {
VueWebComponent
}
}
</script>
<style>
</style>

View file

@ -20,7 +20,7 @@ export default {
props: {
'componentBaseURL': {
required: false,
default: null,
default: "http://localhost/api/v2",
type: String
}
},

View file

@ -1,7 +1,14 @@
import Vue from 'vue';
import wrap from '@vue/web-component-wrapper';
import App from './App.vue';
import VueWebComponent from './components/VueWebComponent';
const CustomElement = wrap(Vue, VueWebComponent);
window.customElements.define('my-custom-element', CustomElement);
window.customElements.define('my-custom-element', CustomElement);
Vue.config.productionTip = false;
new Vue({
render: h => h(App)
}).$mount('#app')