Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt element to load SVG documents as Vue components, utilizing SVGO for marketing.\nFeatures.\nBunch SVG submits as Vue components.\nEnhance SVGs making use of SVGO.\nSeamless combination with Nuxt DevTools.\nInstallation.\nPut up and also include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal supervisor.pnpm incorporate -D nuxt-svgo-loader.npm mount -D nuxt-svgo-loader.anecdote include -D nuxt-svgo-loader.export default defineNuxtConfig( elements: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities listed below will definitely be actually passed to 'vite-svg-loader'. ).[NOTE] Due to the fact that nuxt-svgo-loader is a Nuxt element based upon vite-svg-loader, the setup for svgoLoader remains identical to that of vite-svg-loader. You can easily describe the documents of vite-svg-loader for the on call possibilities here.Use.Part.SVGs can be clearly imported as Vue components utilizing the? element suffix:.import NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs can be imported as Links using the? url suffix:.import nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs may be imported as raw cords making use of the? raw suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In