Sleep

Nuxt Svgo Loader - Vue.js Nourished #.\n\nNuxt module to pack SVG reports as Vue elements, making use of SVGO for marketing.\nFunctions.\nBunch SVG submits as Vue elements.\nMaximize SVGs making use of SVGO.\nSeamless combination with Nuxt DevTools.\nInstallation.\nSet up and also include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal supervisor.pnpm include -D nuxt-svgo-loader.npm put in -D nuxt-svgo-loader.anecdote add -D nuxt-svgo-loader.export default defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities right here will certainly be exchanged 'vite-svg-loader'. ).[NOTE] Because nuxt-svgo-loader is actually a Nuxt module based upon vite-svg-loader, the configuration for svgoLoader continues to be similar to that of vite-svg-loader. You can easily refer to the information of vite-svg-loader for the accessible options listed here.Consumption.Part.SVGs can be explicitly imported as Vue elements utilizing the? component suffix:.import NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs could be imported as Links using the? url suffix:.import nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs can be imported as raw strings utilizing the? raw suffix:.bring in nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In