Sleep

Nuxt Svgo Loading Machine - Vue.js Feed #.\n\nNuxt component to pack SVG files as Vue elements, making use of SVGO for marketing.\nAttributes.\nLoad SVG submits as Vue parts.\nOptimize SVGs using SVGO.\nSeamless assimilation along with Nuxt DevTools.\nInstallment.\nPut in as well as include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your bundle manager.pnpm include -D nuxt-svgo-loader.npm mount -D nuxt-svgo-loader.anecdote add -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Options below will definitely be actually exchanged 'vite-svg-loader'. ).[NOTE] Considering that nuxt-svgo-loader is a Nuxt element based upon vite-svg-loader, the setup for svgoLoader remains exact same to that of vite-svg-loader. You may refer to the paperwork of vite-svg-loader for the readily available options listed below.Utilization.Part.SVGs can be clearly imported as Vue components using the? element suffix:.import NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs could be imported as URLs using the? link suffix:.import nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs can be imported as fresh strings using the? uncooked suffix:.import nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In