Skip to content

Commit ed702bc

Browse files
Benajmin Franzkarol-f
Benajmin Franz
authored andcommittedAug 25, 2020
Add build info
1 parent a3d6b1c commit ed702bc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎README.md

+8
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ import vueCustomElement from 'vue-custom-element'
3030
Vue.use(vueCustomElement);
3131
```
3232

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+
3341
#### Direct include
3442

3543
If you are using Vue globally, just include `vue-custom-element.js` and it will automatically install the `Vue.customElement` method.

0 commit comments

Comments
 (0)
Please sign in to comment.