Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt module to fill SVG data as Vue elements, using SVGO for optimization.\nAttributes.\nLots SVG files as Vue elements.\nImprove SVGs utilizing SVGO.\nSeamless assimilation with Nuxt DevTools.\nInstallation.\nMount and include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your plan supervisor.pnpm incorporate -D nuxt-svgo-loader.npm put up -D nuxt-svgo-loader.anecdote include -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( elements: [' nuxt-svgo-loader'],.svgoLoader: // Options here will certainly be passed to 'vite-svg-loader'. ).[NOTE] Since 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 can pertain to the records of vite-svg-loader for the on call options listed here.Utilization.Component.SVGs can be explicitly imported as Vue parts utilizing the? part suffix:.import NuxtSvg from '~/ assets/svg/nuxt. svg'.//.URL.SVGs may be imported as URLs utilizing the? url suffix:.bring in nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs could be imported as fresh cords utilizing the? fresh suffix:.bring in nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.