Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt component to fill SVG data as Vue components, utilizing SVGO for marketing.\nComponents.\nTons SVG submits as Vue components.\nEnhance SVGs making use of SVGO.\nSmooth combination along with Nuxt DevTools.\nInstallation.\nSet up and also add nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal supervisor.pnpm incorporate -D nuxt-svgo-loader.npm set up -D nuxt-svgo-loader.yarn add -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Alternatives right here will certainly be passed to 'vite-svg-loader'. ).[TAKE NOTE] Because nuxt-svgo-loader is a Nuxt element based on vite-svg-loader, the arrangement for svgoLoader continues to be the same to that of vite-svg-loader. You can easily describe the records of vite-svg-loader for the readily available choices here.Use.Part.SVGs can be explicitly imported as Vue components using the? part suffix:.import NuxtSvg from '~/ assets/svg/nuxt. svg'.//.URL.SVGs could be imported as Links utilizing the? link suffix:.bring in nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs may be imported as raw cords utilizing the? uncooked suffix:.import nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.