Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt element to fill SVG data as Vue elements, making use of SVGO for optimization.\nComponents.\nLots SVG files as Vue parts.\nImprove SVGs making use of SVGO.\nSeamless assimilation along with Nuxt DevTools.\nInstallment.\nMount as well as add nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package deal supervisor.pnpm include -D nuxt-svgo-loader.npm set up -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] Because nuxt-svgo-loader is actually a Nuxt module based upon vite-svg-loader, the configuration for svgoLoader remains identical to that of vite-svg-loader. You can easily pertain to the documents of vite-svg-loader for the offered options listed here.Consumption.Element.SVGs could be explicitly imported as Vue elements using the? component suffix:.import NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs could be imported as URLs utilizing the? url suffix:.bring in nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs could be imported as uncooked strings using the? raw suffix:.bring in nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.