Updated documentation
This commit is contained in:
parent
aa80ba4989
commit
f5f9eb8960
|
@ -76,7 +76,11 @@ You can then include the component on your page using the `name` property you se
|
||||||
</html>
|
</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!!!
|
## IMPORTANT!!!
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name : 'my-component',
|
name : 'example',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
name : 'world'
|
name : 'world'
|
Loading…
Reference in New Issue