Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt module to pack SVG documents as Vue elements, using SVGO for optimization.\nFunctions.\nLoad SVG files as Vue parts.\nMaximize SVGs utilizing SVGO.\nSeamless combination with Nuxt DevTools.\nSetup.\nPut up as well as incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your bundle supervisor.pnpm incorporate -D nuxt-svgo-loader.npm set up -D nuxt-svgo-loader.anecdote include -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities listed below will certainly be exchanged 'vite-svg-loader'. ).[NOTE] Because nuxt-svgo-loader is actually a Nuxt component based on vite-svg-loader, the setup for svgoLoader stays identical to that of vite-svg-loader. You may refer to the documents of vite-svg-loader for the available choices below.Utilization.Part.SVGs may be clearly imported as Vue elements utilizing the? part suffix:.bring in NuxtSvg from '~/ assets/svg/nuxt. svg'.//.URL.SVGs may be imported as URLs utilizing the? url 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? fresh suffix:.bring in nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In