Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Commit

Permalink
doc(README): fix wrong UMD import refer #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Walker Leite committed May 16, 2018
1 parent 6e3aa87 commit 61f3f2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ $ npm run build:umd
<script src="./dist/my-cmp.min.js" charset="utf-8"></script>

<script type="text/javascript">
Vue.component('my-cmp', window.MyCmp);
Vue.component('my-cmp', window.MyCmp.default);
</script>
```
2 changes: 1 addition & 1 deletion template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Vue.component('{{ name }}', {{ camelcase name }});
<link rel="stylesheet" type="text/css" href="./dist/umd/{{ name }}.min.css">

<script type="text/javascript">
Vue.component('{{ name }}', window.{{ camelcase name }});
Vue.component('{{ name }}', window.{{ camelcase name }}.default);
</script>
```

Expand Down

0 comments on commit 61f3f2b

Please sign in to comment.