Sleep

Nuxt Svgo Loader - Vue.js Supplied #.\n\nNuxt module to fill SVG reports as Vue components, utilizing SVGO for optimization.\nFunctions.\nLots SVG files as Vue elements.\nEnhance SVGs using SVGO.\nSeamless assimilation along with Nuxt DevTools.\nInstallation.\nSet up as well as include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your plan supervisor.pnpm incorporate -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 will be passed to 'vite-svg-loader'. ).[NOTE] Considering that nuxt-svgo-loader is a Nuxt element based on vite-svg-loader, the configuration for svgoLoader stays similar to that of vite-svg-loader. You can easily describe the documentation of vite-svg-loader for the offered alternatives below.Use.Component.SVGs may be clearly imported as Vue elements utilizing the? part suffix:.bring in NuxtSvg from '~/ assets/svg/nuxt. svg'.//.URL.SVGs may be imported as URLs using the? link suffix:.bring in nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs may be imported as uncooked strings making use of the? fresh suffix:.import nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.