Sleep

Nuxt Svgo Loader - Vue.js Supplied #.\n\nNuxt component to fill SVG data as Vue elements, making use of SVGO for optimization.\nFunctions.\nBunch SVG submits as Vue elements.\nImprove SVGs making use of SVGO.\nSmooth assimilation along with Nuxt DevTools.\nSetup.\nSet up and also incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package manager.pnpm include -D nuxt-svgo-loader.npm set up -D nuxt-svgo-loader.yarn incorporate -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities right here are going to be exchanged 'vite-svg-loader'. ).[NOTE] Because nuxt-svgo-loader is a Nuxt module based upon vite-svg-loader, the configuration for svgoLoader remains identical to that of vite-svg-loader. You may describe the records of vite-svg-loader for the available alternatives right here.Consumption.Component.SVGs could be explicitly imported as Vue elements making use of the? part suffix:.import NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs can be imported as Links utilizing the? link suffix:.bring in nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs could be imported as uncooked strings using the? raw suffix:.import nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In