Skip to content

Commit

Permalink
docs(img urls): Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse committed Sep 22, 2017
1 parent 759d0f2 commit b4e0750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/images/README.md
Expand Up @@ -4,7 +4,7 @@
on `<img>` tags, but doesn't automatically for Bootrap-Vue custom
components that accept image src url tags.

## `transformToRequire` option
## Vue-loader `transformToRequire` to resolve img paths
To have your project convert these custom component image URLs for you, you will need to
customize the [`transformToRequire`](https://vue-loader.vuejs.org/en/options.html#transformtorequire)
`option` for `vue-loader` in your webpack config.
Expand Down Expand Up @@ -42,7 +42,7 @@ This will allow you to use the following format in your `.vue` files:
<b-card-img img-src="~/static/picture.jpg" />
```

## Using `require`
## Using `require` to resolve image paths
If you cannot set the `transforToRequire` in your view-loader config, you
can alternatively use the `require` method:

Expand Down

0 comments on commit b4e0750

Please sign in to comment.