Sleep

Nuxt Svgo Loader - Vue.js Supplied #.\n\nNuxt module to fill SVG data as Vue components, using SVGO for optimization.\nFunctions.\nLots SVG submits as Vue components.\nOptimize SVGs utilizing SVGO.\nSeamless assimilation along with Nuxt DevTools.\nInstallation.\nInstall and add nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal manager.pnpm add -D nuxt-svgo-loader.npm put up -D nuxt-svgo-loader.yarn add -D nuxt-svgo-loader.export default defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Alternatives listed here will certainly be passed to 'vite-svg-loader'. ).[TAKE NOTE] Considering that nuxt-svgo-loader is actually a Nuxt component based on vite-svg-loader, the configuration for svgoLoader stays exact same to that of vite-svg-loader. You can pertain to the documents of vite-svg-loader for the available possibilities below.Utilization.Component.SVGs may be explicitly imported as Vue elements using the? component suffix:.import NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.URL.SVGs may be imported as Links making use of the? link 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? uncooked suffix:.bring in nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.