Skip to content

Commit 3ffcb18

Browse files
authored
docs(assets): update static asset URL transformation in dev (#18842)
1 parent 5c02236 commit 3ffcb18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/assets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import imgUrl from './img.png'
1414
document.getElementById('hero-img').src = imgUrl
1515
```
1616

17-
For example, `imgUrl` will be `/img.png` during development, and become `/assets/img.2d8efhg.png` in the production build.
17+
For example, `imgUrl` will be `/src/img.png` during development, and become `/assets/img.2d8efhg.png` in the production build.
1818

1919
The behavior is similar to webpack's `file-loader`. The difference is that the import can be either using absolute public paths (based on project root during dev) or relative paths.
2020

0 commit comments

Comments
 (0)