Support SVG imports in dev mode

Because Vite is running on a different host in GDK it doesn't support SVG imports out of the box. If you try to import SVG you'll get a CSP error that requires for SVG links to be served through the same host as the document. This is important for GitLab UI to function in both Webpack and Vite.

In order to solve this we could either:

  1. Inline SVG
  2. Convert raw SVG into base64 and use in the <img src=""> tag

The tricky part would be somehow transforming existing <svg><use> code into either of these options.

Edited by 🤖 GitLab Bot 🤖