Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt module to load SVG files as Vue components, using SVGO for marketing.\nFeatures.\nBunch SVG submits as Vue components.\nOptimize SVGs utilizing SVGO.\nSeamless integration with Nuxt DevTools.\nInstallment.\nMount as well as incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package deal manager.pnpm add -D nuxt-svgo-loader.npm put up -D nuxt-svgo-loader.yarn include -D nuxt-svgo-loader.export default defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Choices below will definitely be actually exchanged 'vite-svg-loader'. ).[NOTE] Because nuxt-svgo-loader is a Nuxt module based upon vite-svg-loader, the arrangement for svgoLoader continues to be identical to that of vite-svg-loader. You can describe the documentation of vite-svg-loader for the accessible alternatives listed below.Use.Element.SVGs may be clearly imported as Vue parts using the? part suffix:.import NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs may be imported as Links utilizing the? link suffix:.bring in nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs can be imported as fresh strings using the? fresh suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.