Sleep

Nuxt Svgo Loader - Vue.js Supplied #.\n\nNuxt component to pack SVG reports as Vue components, using SVGO for optimization.\nFunctions.\nBunch SVG submits as Vue parts.\nMaximize SVGs utilizing SVGO.\nSmooth combination along with Nuxt DevTools.\nInstallment.\nSet up as well as 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.yarn incorporate -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities listed here are going to be actually passed to 'vite-svg-loader'. ).[NOTE] Considering that nuxt-svgo-loader is actually a Nuxt element based on vite-svg-loader, the setup for svgoLoader stays the same to that of vite-svg-loader. You can easily describe the documentation of vite-svg-loader for the available choices here.Usage.Element.SVGs may be explicitly imported as Vue components using the? part suffix:.bring in NuxtSvg from '~/ assets/svg/nuxt. svg'.//.URL.SVGs may be imported as URLs using the? url suffix:.bring in nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs may be imported as uncooked strands using the? raw suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.