So I need to style an svg with CSS, but it is quite large and having it in my index.html
would be a nightmare.
I have tried SVGInject, SVGInjector, wrapping it in an object
and using contentDocument
, using XMLHttpRequest
, and using the node fs
module, but the problem is: I need to run it locally.
This is because it's something similar to a school project and there is a requirement that it has to be able to be opened from any browser and on any computer, ergo no local servers. Is there any way to do this?