Sleep

Nuxt Svgo Loading Machine - Vue.js Supplied #.\n\nNuxt component to fill SVG reports as Vue components, utilizing SVGO for marketing.\nComponents.\nLoad SVG submits as Vue components.\nEnhance SVGs using SVGO.\nSeamless assimilation along with Nuxt DevTools.\nSetup.\nInstall as well as incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package deal manager.pnpm add -D nuxt-svgo-loader.npm put in -D nuxt-svgo-loader.anecdote include -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Options listed below will be actually passed to 'vite-svg-loader'. ).[NOTE] Because nuxt-svgo-loader is actually a Nuxt component based on vite-svg-loader, the arrangement for svgoLoader stays exact same to that of vite-svg-loader. You can easily describe the documents of vite-svg-loader for the readily available choices right here.Usage.Element.SVGs could be explicitly imported as Vue components using the? part suffix:.bring in NuxtSvg from '~/ assets/svg/nuxt. svg'.//.URL.SVGs may be imported as URLs utilizing the? url suffix:.bring in nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs may be imported as raw strings using the? fresh suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.