Skip to content

v1.3.0

Compare
Choose a tag to compare
@Applelo Applelo released this 11 Aug 09:40
· 131 commits to main since this release
a215dc7

What's Changed

  • Add Vue component support
<script setup lang="ts">
import SpiriitView from './icons/spiriit.svg?view'
import SpiriitUse from './icons/spiriit.svg?use'
import ViteView from './icons/vite.svg?view'
import ViteUse from './icons/vite.svg?use'
</script>

<template>
  <h1>Vite Plugin SVG Spritemap Demo with VueJS</h1>

  <p>This is a demo of the Vite Plugin SVG Spritemap working with VueJS component.</p>

  <div class="example">
    <h2>Spritemap with &lt;use> via Vue component</h2>

    <div class="example__svgs">
      <SpiriitUse>
        <title>My superb logo</title>
      </SpiriitUse>
      <ViteUse />
    </div>
  </div>

  <div class="example">
    <h2>Spritemap with &lt;img> (fragments) via Vue component</h2>

    <div class="example__svgs">
      <SpiriitView />
      <ViteView />
    </div>
  </div>
</template>
  • Add test for Vue component and injectSvgOnDev
  • Fix injectSVG error

Full Changelog: v1.2.0...v1.3.0