Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt component to fill SVG documents as Vue elements, using SVGO for optimization.\nFunctions.\nTons SVG files as Vue elements.\nEnhance SVGs using SVGO.\nSeamless integration along with Nuxt DevTools.\nSetup.\nPut up and also incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package supervisor.pnpm include -D nuxt-svgo-loader.npm put in -D nuxt-svgo-loader.anecdote incorporate -D nuxt-svgo-loader.export default defineNuxtConfig( elements: [' nuxt-svgo-loader'],.svgoLoader: // Choices listed here will be passed to 'vite-svg-loader'. ).[KEEP IN MIND] Because nuxt-svgo-loader is a Nuxt component based on vite-svg-loader, the arrangement for svgoLoader stays similar to that of vite-svg-loader. You may describe the paperwork of vite-svg-loader for the offered choices listed below.Use.Part.SVGs can be clearly imported as Vue components using the? element suffix:.import NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs may be imported as Links utilizing the? link suffix:.import nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs could be imported as raw strings using the? uncooked suffix:.bring in nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In