Needlessly Provoking Marsupials

    @teamwork/vue-svg-loader

    1.0.2 • Public • Published

    vue-svg-loader

    A webpack loader that allows to use SVG files as Vue Components.

    Installation

    npm install --save-dev vue-svg-loader
    yarn add --dev vue-svg-loader
    

    Configuration

    {
      test: /\.svg$/,
      loader: 'vue-svg-loader', // `vue-svg` for webpack 1.x
    }

    Example code

    <template>
      <nav id="menu">
        <a href="...">
          <SomeIcon class="icon" />
          Some page
        </a>
      </nav>
    </template>
    
    <script>
    import SomeIcon from './assets/some-icon.svg';
    
    export default {
      name: 'menu',
      components: {
        SomeIcon,
      },
    };
    </script>

    The idea behind this was inspired by react-svg-loader.

    Install

    npm i @teamwork/vue-svg-loader

    DownloadsWeekly Downloads

    9

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • pmgriffin
    • victoriasloan
    • a1d0
    • alvarotw
    • seanogdev
    • maximised
    • panagiotisptr_teamwork
    • conor.quin
    • kamenkolev.shared
    • manucuestatw
    • rafaelveggi
    • chrisrollins65
    • andrssl
    • labros_b
    • peter.lazarov94
    • kclaur
    • yonson2
    • xlerida
    • pktw
    • jesushorcajo
    • eddieg152
    • decob
    • pinkkis
    • tigh
    • ilserodriguez
    • jamesh182
    • k823
    • jimbei
    • crssn
    • mdziedzinski
    • chrisjtwomey
    • simonbb
    • vg500
    • ma-jerez
    • fergalbittles
    • monika.piotrowska
    • ivayloovcharov
    • ismaelpenalver
    • kadenn
    • nathanmcclelland
    • sinderpl
    • fatihunlu
    • nathandennis
    • stevenr84
    • lmcaree
    • jordanteamwork
    • mjteamwork
    • matteobandiera
    • stdiopt
    • jacknev
    • felipemrodrigues
    • roryok
    • duncan1a
    • garycremen
    • dommurphytw
    • shaydoc75
    • bmckay397
    • sineadcullinane
    • miccc
    • shanepm
    • sheyla.marhuenda
    • techfort
    • rafaeljusto
    • 1001hz
    • ryanlync
    • michaelwebcork
    • felixls
    • 4ver
    • emmetcampion
    • bakaat
    • aetheon
    • dawidmyslak
    • mike182uk
    • teamwork-dev
    • cianwoods
    • kersh
    • jamesdraper5
    • aodhom
    • ripexz
    • morethanaprogrammer
    • jatochnietdan
    • yannig
    • samternent
    • pshad0w
    • irltopper
    • dmackey
    • yawlhead91
    • gordonmurray
    • daveohalloran
    • gkubisa
    • i.dobrovolskyi
    • hollymc
    • jessicaaferraz
    • arielpiecha-teamwork
    • cesartw
    • miquel.vallespir
    • jasoncheung94
    • jamesmccullough
    • garymcbay
    • ekm1908
    • romanodesouzatw
    • adamcarroll-teamwork
    • hmarron
    • asajaroff
    • bradderz
    • patrickaodh
    • rossi99
    • vercadium
    • cristian.teamwork
    • andyantrim
    • steve.walsh
    • victoriasloan1995
    • guillermofgorostidi
    • donnchadhcoffey
    • lucasleandro1204
    • atilkan
    • ktopouzi
    • aidancasey
    • gear54rus
    • viniciussaran
    • samyuktasreekanth
    • valerio-farriciello
    • ozhi
    • netoramalhotw
    • ap7t
    • luketynan
    • marciliotw
    • alekaei
    • twsanjay
    • chrismccormack
    • jaspiertw