Closed reitzig closed 4 years ago
try the latest code please. using relative url.
That seems to work, cool! :+1:
FWIW, you can do without the local $url
variable:
url('{{- "/assets/font/iconfont.ttf" | relURL -}}')
Friendly meta feedback, FYI: Contributing feels nicer if we collaborate on a PR that then gets merged, instead of you pushing to master and me closing the PR. :) I know it's a few more buttons to push on your end (been there), but I think creating a contribution-friendly atmosphere is worth it. If that's what you're after, of course.
Thanks very much for your suggestions!
Use
baseURL
explicitly to circumvent absolute paths failing if the site lives in a subfolder.As an alternative,
../assets/...
would work but relies on where exactly the CSS ends up being deployed; also, @cntrump rejected relative asset paths earlier.