Hey! I’m experimenting with using layout partials much more than before, and decided to make a stylable and animatable SVG logo using svg xlink. I have thus made a partials/logo.blade.php file, which looks like this:
This, however, breaks on build:production, as the the xlink refers to dist/images/logo.svg#svg, while the actual file has a hash afterwards: logo_ea46fdae.svg
@asset is meant to reference the asset itself, not the url you want to generate. In this case it’s failing because it’s looking for an asset called logo.svg#logo, which doesn’t exist, so it doesn’t transform it. The resulting url works in dev, because your assets aren’t hashed, hence the path is valid.