Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt element to load SVG files as Vue elements, utilizing SVGO for optimization.\nAttributes.\nBunch SVG submits as Vue elements.\nMaximize SVGs using SVGO.\nSeamless integration along with Nuxt DevTools.\nInstallation.\nMount and also add nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your bundle supervisor.pnpm incorporate -D nuxt-svgo-loader.npm mount -D nuxt-svgo-loader.anecdote add -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( elements: [' nuxt-svgo-loader'],.svgoLoader: // Choices listed below are going to be passed to 'vite-svg-loader'. ).[TAKE NOTE] Because nuxt-svgo-loader is actually a Nuxt element based on vite-svg-loader, the configuration for svgoLoader stays the same to that of vite-svg-loader. You can easily describe the information of vite-svg-loader for the offered alternatives right here.Use.Part.SVGs could be explicitly imported as Vue parts making use of the? part suffix:.bring in NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs could be imported as Links using the? link suffix:.import nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs could be imported as fresh strings making use of the? raw suffix:.import nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In