trunk
trunk copied to clipboard
rel="copy-file" misbehaves if given a symbolic link
When copying a file that is actually a symbolic link, the name becomes that of the file pointed to by the symbolic link, not the original href
.
Current behavior:
<link data-trunk rel="copy-file" href="og_image.png"/>
$ ln -s ../assets/branding/512x512.png og_image.png
$ trunk build
2022-09-07T17:50:10.228738Z INFO copying file path="/home/path/to/project/assets/branding/512x512.png"
$ ls dist
512x512.png
Expected behavior:
$ ls dist
og_image.png
(using trunk 0.15.0
)