Sleep

Nuxt Svgo Loading Machine - Vue.js Feed #.\n\nNuxt module to fill SVG data as Vue components, using SVGO for marketing.\nAttributes.\nTons SVG files as Vue parts.\nEnhance SVGs making use of SVGO.\nSeamless assimilation along with Nuxt DevTools.\nInstallment.\nInstall as well as include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal supervisor.pnpm include -D nuxt-svgo-loader.npm put in -D nuxt-svgo-loader.anecdote include -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( elements: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities right here are going to be actually exchanged 'vite-svg-loader'. ).[TAKE NOTE] Since nuxt-svgo-loader is actually a Nuxt component based on vite-svg-loader, the configuration for svgoLoader continues to be the same to that of vite-svg-loader. You can easily pertain to the documents of vite-svg-loader for the offered alternatives listed below.Usage.Part.SVGs could be clearly imported as Vue elements making use of the? component suffix:.bring in NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.URL.SVGs may be imported as URLs using the? url suffix:.import nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs may be imported as raw strings utilizing the? uncooked suffix:.bring in nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In