astro-shield icon indicating copy to clipboard operation
astro-shield copied to clipboard

Relative protocol notation not supported

Open cedmax opened this issue 1 year ago • 0 comments

Resources referenced with a relative protocol (// notation, like the example below) lead to an error, as the library fails to recognise them as remote assets.

<script src="//cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js" is:inline></script>

leads to

ENOENT: no such file or directory, open '/Users/username/Workspace/my-project/dist/cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js'

whilst ideally it should be treated like if it was

<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js" is:inline></script>

cedmax avatar Jun 17 '24 16:06 cedmax