We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3d6b1c commit ed702bcCopy full SHA for ed702bc
README.md
@@ -30,6 +30,14 @@ import vueCustomElement from 'vue-custom-element'
30
Vue.use(vueCustomElement);
31
```
32
33
+To build your web-component using vue-cli, you have to use the following command:
34
+
35
+```bash
36
+vue-cli-service build --target lib --name your-component-name src/main.js
37
+```
38
39
+Note: the command ```vue-cli-service build --target wc``` does not work, since it using vue's own vue-web-component-wrapper.
40
41
#### Direct include
42
43
If you are using Vue globally, just include `vue-custom-element.js` and it will automatically install the `Vue.customElement` method.
0 commit comments