Sleep

Nuxt Svgo Loading Machine - Vue.js Feed #.\n\nNuxt module to load SVG reports as Vue components, making use of SVGO for marketing.\nAttributes.\nLoad SVG submits as Vue parts.\nOptimize SVGs utilizing SVGO.\nSeamless integration with Nuxt DevTools.\nInstallment.\nMount and also include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your bundle supervisor.pnpm add -D nuxt-svgo-loader.npm mount -D nuxt-svgo-loader.anecdote include -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Choices here will certainly be actually passed to 'vite-svg-loader'. ).[NOTE] Since nuxt-svgo-loader is actually a Nuxt component based upon vite-svg-loader, the arrangement for svgoLoader continues to be similar to that of vite-svg-loader. You may describe the information of vite-svg-loader for the readily available options right here.Use.Element.SVGs can be explicitly imported as Vue elements utilizing the? element suffix:.import NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs can be imported as Links utilizing the? link suffix:.import nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs may be imported as uncooked strands making use of the? raw suffix:.bring in nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.