Sleep

Nuxt Svgo Loading Machine - Vue.js Supplied #.\n\nNuxt module to load SVG documents as Vue parts, utilizing SVGO for marketing.\nComponents.\nLoad SVG files as Vue components.\nMaximize SVGs making use of SVGO.\nSeamless assimilation along with Nuxt DevTools.\nInstallation.\nPut in and also add nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package supervisor.pnpm incorporate -D nuxt-svgo-loader.npm mount -D nuxt-svgo-loader.anecdote include -D nuxt-svgo-loader.export default defineNuxtConfig( elements: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities here will definitely be exchanged 'vite-svg-loader'. ).[NOTE] Considering that nuxt-svgo-loader is a Nuxt module based upon vite-svg-loader, the setup for svgoLoader continues to be similar to that of vite-svg-loader. You may describe the paperwork of vite-svg-loader for the readily available possibilities below.Use.Part.SVGs may be explicitly imported as Vue parts making use of the? component suffix:.bring in NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs can be imported as URLs using the? url suffix:.bring in nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs could be imported as uncooked strands utilizing the? raw suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In