Sleep

Nuxt Svgo Loader - Vue.js Supplied #.\n\nNuxt element to fill SVG documents as Vue elements, making use of SVGO for optimization.\nFeatures.\nBunch SVG submits as Vue elements.\nMaximize SVGs making use of SVGO.\nSmooth integration along with Nuxt DevTools.\nInstallment.\nMount and include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package supervisor.pnpm include -D nuxt-svgo-loader.npm put up -D nuxt-svgo-loader.yarn incorporate -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Options here will be exchanged 'vite-svg-loader'. ).[TAKE NOTE] Because nuxt-svgo-loader is a Nuxt module based upon vite-svg-loader, the arrangement for svgoLoader stays the same to that of vite-svg-loader. You can easily refer to the records of vite-svg-loader for the offered options here.Consumption.Component.SVGs may be clearly imported as Vue parts using the? element suffix:.bring in NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs may be imported as Links utilizing the? link suffix:.import nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs could be imported as uncooked strings utilizing the? fresh suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In