Skip to content

Commit 8e6882f

Browse files
authored
docs(assets): update static asset URL transformation in dev (#1767)
1 parent 31fc4aa commit 8e6882f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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-
例えば、 `imgUrl` は、開発中は `/img.png` となり、本番用ビルドでは `/assets/img.2d8efhg.png` となります。
17+
例えば、 `imgUrl` は、開発中は `/src/img.png` となり、本番用ビルドでは `/assets/img.2d8efhg.png` となります。
1818

1919
振る舞いは webpack の `file-loader` に似ています。異なるのは、絶対的なパブリックパス(開発中のプロジェクトのルートに基づく)または、相対パスを使用することができるという点です。
2020

0 commit comments

Comments
 (0)