astro-shield
astro-shield copied to clipboard
Relative protocol notation not supported
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>