Include SVG using webpack directly into HTML

I would like to include an SVG directly into an html (loaded using html-webpack-plugin).

Basically, I would like to do something like that:

<html>
<body>
 require('test.svg');
</body>
</html>

And I would like the result to be:

<html>
<body>
  <svg>
    <defs>
    ...
    </defs>
  </svg>
</body>
</html>

The reason I don't want to use img tag is that I use SVG defs (where all of my images are in a single SVG file which I want to load when HTML loads)

Thanks in advance...