title: How to include inline .svg in Nuxt application
body: <p>I want to do a common thing - include dynamically an svg HTML in Vue Nuxt application which I will able to style. To do this, I created a component but instead of image, I get a text <em>data:image/svg+xhtml...</em>.</p>
  
  <p>How to make it work?</p>
  
  <pre><code>&lt;template&gt;
     &lt;div v-html="src"&gt;&lt;/div&gt;
  &lt;/template&gt;
  &lt;script&gt;
  export default {
      name: 'Icon',
      props: {
          name: {
              type: String,
              required: true
          }
      },
      computed: {
          src() {
              const src = require(`assets/icons/${this.name}.svg`)
              return src
          }
      }
  }
  &lt;/script&gt;
  </code></pre>