Updated documentation

This commit is contained in:
RonnieSan 2018-05-21 00:20:49 -07:00
parent aa80ba4989
commit f5f9eb8960
2 changed files with 6 additions and 2 deletions

View File

@ -76,7 +76,11 @@ You can then include the component on your page using the `name` property you se
</html>
```
The template package includes a sample component (`my-component.vue`) that you can test it all out with. The command you would use to compile it would be `webpack --env.file=example`.
## Included Example
The template package includes a sample component (`my-component.vue`) that you can test it all out with. The command you would use to compile it would be `webpack --env.file=example`. The component has a name property of `example`, the the tagname you would use in your HTML woudl be `<example></example>`.
## Converting an existing Vue Single File Component to a standalone JS file
To convert an existing Vue Single File Component to a standalone JS file, simple add it to the `src` folder along with all the required dependencies (make sure all the paths are correct for the dependencies). Then run the compiler (`webpack` command) with the `--env.file` argument pointing to the component. If anything goes wrong, the compiler will tell you what errors occured.
## IMPORTANT!!!

View File

@ -6,7 +6,7 @@
<script>
export default {
name : 'my-component',
name : 'example',
data() {
return {
name : 'world'