Sleep

Nuxt Svgo Loading Machine - Vue.js Feed #.\n\nNuxt module to fill SVG reports as Vue elements, using SVGO for marketing.\nFeatures.\nLots SVG files as Vue parts.\nMaximize SVGs utilizing SVGO.\nSeamless integration along with Nuxt DevTools.\nInstallment.\nPut in and include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your bundle manager.pnpm incorporate -D nuxt-svgo-loader.npm mount -D nuxt-svgo-loader.anecdote include -D nuxt-svgo-loader.export default defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Alternatives here will definitely be passed to 'vite-svg-loader'. ).[NOTE] Given that nuxt-svgo-loader is a Nuxt component based upon vite-svg-loader, the setup for svgoLoader continues to be exact same to that of vite-svg-loader. You may pertain to the information of vite-svg-loader for the available choices listed here.Usage.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:.bring in nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs can be imported as uncooked strings utilizing the? raw suffix:.import nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In