Sleep

Nuxt Svgo Loader - Vue.js Nourished #.\n\nNuxt component to fill SVG reports as Vue parts, utilizing SVGO for marketing.\nFunctions.\nBunch SVG files as Vue components.\nImprove SVGs making use of SVGO.\nSeamless integration along with Nuxt DevTools.\nInstallation.\nMount as well as incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal supervisor.pnpm include -D nuxt-svgo-loader.npm put up -D nuxt-svgo-loader.anecdote incorporate -D nuxt-svgo-loader.export default defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities listed below are going to be actually passed to 'vite-svg-loader'. ).[NOTE] Since nuxt-svgo-loader is actually a Nuxt module based upon vite-svg-loader, the arrangement for svgoLoader stays the same to that of vite-svg-loader. You may refer to the information of vite-svg-loader for the offered possibilities below.Usage.Component.SVGs can be clearly imported as Vue components making use of the? element suffix:.import NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs could be imported as Links making use of 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 === '.