Sleep

Nuxt Svgo Loading Machine - Vue.js Supplied #.\n\nNuxt component to pack SVG files as Vue components, making use of SVGO for marketing.\nComponents.\nBunch SVG files as Vue parts.\nMaximize SVGs making use of SVGO.\nSeamless combination along with Nuxt DevTools.\nInstallment.\nSet up and also incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package supervisor.pnpm include -D nuxt-svgo-loader.npm put in -D nuxt-svgo-loader.anecdote incorporate -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities listed below will certainly be exchanged 'vite-svg-loader'. ).[KEEP IN MIND] Considering that nuxt-svgo-loader is a Nuxt component based on vite-svg-loader, the arrangement for svgoLoader stays identical to that of vite-svg-loader. You can easily pertain to the information of vite-svg-loader for the offered alternatives below.Use.Element.SVGs may be clearly imported as Vue components making use of the? part suffix:.bring in NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs could be imported as Links using 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 strings utilizing the? raw suffix:.import nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.