Sleep

Nuxt Svgo Loader - Vue.js Supplied #.\n\nNuxt module to fill SVG files as Vue elements, using SVGO for optimization.\nFunctions.\nLoad SVG files as Vue elements.\nImprove SVGs using SVGO.\nSmooth integration with Nuxt DevTools.\nSetup.\nSet up and also incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal supervisor.pnpm include -D nuxt-svgo-loader.npm mount -D nuxt-svgo-loader.anecdote add -D nuxt-svgo-loader.export default defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Choices here will be actually passed to 'vite-svg-loader'. ).[NOTE] Because nuxt-svgo-loader is a Nuxt component based on vite-svg-loader, the setup for svgoLoader stays similar to that of vite-svg-loader. You can describe the records of vite-svg-loader for the offered possibilities listed here.Utilization.Part.SVGs may be clearly imported as Vue parts using the? element suffix:.bring in NuxtSvg from '~/ assets/svg/nuxt. svg'.//.URL.SVGs may 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 may be imported as fresh strands utilizing the? uncooked suffix:.import nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.