Sleep

Nuxt Svgo Loader - Vue.js Nourished #.\n\nNuxt module to load SVG reports as Vue elements, making use of SVGO for optimization.\nFunctions.\nLots SVG files as Vue elements.\nImprove SVGs making use of SVGO.\nSmooth combination along with Nuxt DevTools.\nInstallment.\nMount as well as include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package supervisor.pnpm add -D nuxt-svgo-loader.npm put in -D nuxt-svgo-loader.yarn add -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( components: [' nuxt-svgo-loader'],.svgoLoader: // Choices below are going to be passed to 'vite-svg-loader'. ).[KEEP IN MIND] Since nuxt-svgo-loader is a Nuxt element based upon vite-svg-loader, the arrangement for svgoLoader stays identical to that of vite-svg-loader. You can pertain to the documents of vite-svg-loader for the available choices below.Consumption.Element.SVGs could be explicitly imported as Vue parts making use of the? part suffix:.bring in NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs can be imported as URLs using the? link suffix:.bring in nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs may be imported as raw strings utilizing the? raw suffix:.bring in nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In