You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to reference static assets that are imported via JS and appear in the manifest, e.g. {{ craft.vite.asset("src/sprite.svg") }}.
Expected behaviour
The asset function should return the hashed path to assets in production. It appears the issue exists in extractAssetFiles in ManifestHelper.php, as it's looking for an assets key that doesn't exist in modern manifests.
Describe the bug
I'm unable to reference static assets that are imported via JS and appear in the manifest, e.g.
{{ craft.vite.asset("src/sprite.svg") }}
.Expected behaviour
The asset function should return the hashed path to assets in production. It appears the issue exists in
extractAssetFiles
in ManifestHelper.php, as it's looking for anassets
key that doesn't exist in modern manifests.Example Manifest
Versions
The text was updated successfully, but these errors were encountered: