Closed pojiro closed 1 year ago
CSS の url() で相対パスを使う場合、その起点となるパスは stylesheet のファイルパスになる点に注意。
Relative URLs, if used, are relative to the URL of the stylesheet (not to the URL of the web page).
ref. https://developer.mozilla.org/en-US/docs/Web/CSS/url
dist/tailwind.css がパスの起点となるので、相対パスは dist/../src/images/file に展開される。
dist/tailwind.css
dist/../src/images/file
CSS の url() で相対パスを使う場合、その起点となるパスは stylesheet のファイルパスになる点に注意。
ref. https://developer.mozilla.org/en-US/docs/Web/CSS/url
dist/tailwind.css
がパスの起点となるので、相対パスはdist/../src/images/file
に展開される。