This PR adds the possibility of loading a CSS file from an external source such as stylesheet from CDN which makes it easier to test out the provider. I haven't been able to test it properly but it should work. It checks whether the file parameter starts with http(s):// in which case it loads the content using http, otherwise it loads from the local file system
Also small fixes for a couple of pattern match cases that weren't handled (plus auditing the npm packages with npm audit fix)
Hello there,
This PR adds the possibility of loading a CSS file from an external source such as stylesheet from CDN which makes it easier to test out the provider. I haven't been able to test it properly but it should work. It checks whether the
file
parameter starts withhttp(s)://
in which case it loads the content using http, otherwise it loads from the local file systemAlso small fixes for a couple of pattern match cases that weren't handled (plus auditing the npm packages with
npm audit fix
)