Sleep

Nuxt Svgo Loading Machine - Vue.js Feed #.\n\nNuxt element to fill SVG documents as Vue elements, using SVGO for marketing.\nFeatures.\nLots SVG submits as Vue elements.\nImprove SVGs making use of SVGO.\nSeamless integration along with Nuxt DevTools.\nSetup.\nPut in and include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package deal manager.pnpm include -D nuxt-svgo-loader.npm put up -D nuxt-svgo-loader.yarn incorporate -D nuxt-svgo-loader.export default defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities below will certainly be actually passed to 'vite-svg-loader'. ).[NOTE] Given that nuxt-svgo-loader is a Nuxt component based upon vite-svg-loader, the arrangement for svgoLoader remains identical to that of vite-svg-loader. You can easily pertain to the information of vite-svg-loader for the available options below.Utilization.Part.SVGs could be clearly imported as Vue parts utilizing the? element suffix:.bring in NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs could be imported as URLs 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 fresh strings using the? raw suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.