Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt element to pack SVG files as Vue parts, utilizing SVGO for marketing.\nAttributes.\nBunch SVG submits as Vue parts.\nMaximize SVGs using SVGO.\nSmooth assimilation with Nuxt DevTools.\nInstallation.\nSet up and 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( components: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities listed below are going to be actually exchanged 'vite-svg-loader'. ).[NOTE] Considering that nuxt-svgo-loader is actually a Nuxt element based upon vite-svg-loader, the arrangement for svgoLoader remains the same to that of vite-svg-loader. You may refer to the documents of vite-svg-loader for the readily available options listed below.Utilization.Element.SVGs can be clearly imported as Vue parts utilizing the? element suffix:.import NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs can be imported as Links using the? link suffix:.bring in nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs could be imported as uncooked cords utilizing the? fresh suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.