Sleep

Nuxt Svgo Loader - Vue.js Supplied #.\n\nNuxt component to fill SVG reports as Vue components, using SVGO for optimization.\nAttributes.\nTons SVG submits as Vue components.\nImprove SVGs using SVGO.\nSmooth assimilation with Nuxt DevTools.\nInstallation.\nInstall and also add nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal manager.pnpm include -D nuxt-svgo-loader.npm install -D nuxt-svgo-loader.anecdote include -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Choices listed here are going to be actually exchanged 'vite-svg-loader'. ).[KEEP IN MIND] Given that nuxt-svgo-loader is actually a Nuxt module based on vite-svg-loader, the configuration for svgoLoader remains identical to that of vite-svg-loader. You can describe the records of vite-svg-loader for the on call alternatives here.Consumption.Component.SVGs can be clearly imported as Vue parts utilizing the? component suffix:.bring in NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs could be imported as Links utilizing the? link suffix:.bring in nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs could be imported as uncooked strings making use of the? fresh suffix:.bring in nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In