Sleep

Nuxt Svgo Loading Machine - Vue.js Supplied #.\n\nNuxt component to fill SVG files as Vue elements, making use of SVGO for optimization.\nAttributes.\nLots SVG files as Vue components.\nMaximize SVGs utilizing SVGO.\nSmooth combination along with Nuxt DevTools.\nInstallment.\nPut up and incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal supervisor.pnpm incorporate -D nuxt-svgo-loader.npm put up -D nuxt-svgo-loader.anecdote add -D nuxt-svgo-loader.export default defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities listed below will definitely be exchanged 'vite-svg-loader'. ).[TAKE NOTE] Because nuxt-svgo-loader is a Nuxt element based upon vite-svg-loader, the setup for svgoLoader remains the same to that of vite-svg-loader. You may describe the information of vite-svg-loader for the accessible choices listed below.Consumption.Element.SVGs may be clearly imported as Vue parts making use of the? component suffix:.bring in NuxtSvg from '~/ assets/svg/nuxt. svg'.//.URL.SVGs could be imported as URLs using the? url suffix:.bring in nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs can be imported as raw cords making use of the? uncooked suffix:.import nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In