Sleep

Nuxt Svgo Loading Machine - Vue.js Feed #.\n\nNuxt element to load SVG documents as Vue components, utilizing SVGO for optimization.\nAttributes.\nLoad SVG files as Vue components.\nEnhance SVGs utilizing SVGO.\nSmooth assimilation along with Nuxt DevTools.\nInstallment.\nPut up and also incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package manager.pnpm include -D nuxt-svgo-loader.npm install -D nuxt-svgo-loader.yarn add -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( elements: [' nuxt-svgo-loader'],.svgoLoader: // Options listed here will be exchanged 'vite-svg-loader'. ).[NOTE] Considering that nuxt-svgo-loader is actually a Nuxt module based on vite-svg-loader, the configuration for svgoLoader stays similar to that of vite-svg-loader. You may describe the information of vite-svg-loader for the offered alternatives here.Use.Component.SVGs could be clearly imported as Vue elements utilizing the? component suffix:.import NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs may be imported as Links utilizing the? link suffix:.import nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs can be imported as fresh cords using the? raw suffix:.bring in nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.