Sleep

Nuxt Svgo Loader - Vue.js Nourished #.\n\nNuxt component to load SVG reports as Vue elements, using SVGO for marketing.\nAttributes.\nLots SVG submits as Vue parts.\nEnhance SVGs utilizing SVGO.\nSeamless combination with Nuxt DevTools.\nInstallation.\nMount and also incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your bundle manager.pnpm incorporate -D nuxt-svgo-loader.npm install -D nuxt-svgo-loader.anecdote incorporate -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities right here are going to be actually exchanged 'vite-svg-loader'. ).[NOTE] Due to the fact that nuxt-svgo-loader is actually a Nuxt module based upon vite-svg-loader, the arrangement for svgoLoader continues to be exact same to that of vite-svg-loader. You may pertain to the documents of vite-svg-loader for the available alternatives listed here.Utilization.Component.SVGs can be clearly imported as Vue parts utilizing the? component suffix:.bring in NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs may be imported as Links utilizing the? link suffix:.import nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs can be imported as uncooked cords using the? fresh suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.