Sleep

Nuxt Svgo Loading Machine - Vue.js Supplied #.\n\nNuxt module to pack SVG files as Vue parts, using SVGO for marketing.\nFunctions.\nLoad SVG submits as Vue elements.\nImprove SVGs utilizing SVGO.\nSeamless assimilation with Nuxt DevTools.\nSetup.\nPut up and also include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal supervisor.pnpm add -D nuxt-svgo-loader.npm install -D nuxt-svgo-loader.yarn include -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( elements: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities listed below will be actually exchanged 'vite-svg-loader'. ).[NOTE] Since nuxt-svgo-loader is actually a Nuxt module based upon vite-svg-loader, the configuration for svgoLoader remains identical to that of vite-svg-loader. You can easily refer to the paperwork of vite-svg-loader for the available choices listed below.Usage.Part.SVGs may be explicitly imported as Vue components making use of the? part suffix:.import NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs can be imported as Links making use of the? url suffix:.import nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs may be imported as raw strands utilizing the? raw suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.