Sleep

Nuxt Svgo Loading Machine - Vue.js Nourished #.\n\nNuxt module to fill SVG documents as Vue parts, using SVGO for optimization.\nFeatures.\nTons SVG files as Vue elements.\nEnhance SVGs making use of SVGO.\nSeamless assimilation with Nuxt DevTools.\nInstallation.\nMount as well as add nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your deal supervisor.pnpm incorporate -D nuxt-svgo-loader.npm set up -D nuxt-svgo-loader.anecdote add -D nuxt-svgo-loader.export default defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Options listed below will be passed to 'vite-svg-loader'. ).[NOTE] Given that nuxt-svgo-loader is a Nuxt element based on vite-svg-loader, the configuration for svgoLoader remains the same to that of vite-svg-loader. You may pertain to the information of vite-svg-loader for the offered alternatives here.Use.Part.SVGs may be clearly imported as Vue elements using the? part suffix:.bring in NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs could be imported as URLs utilizing the? link suffix:.import nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs can be imported as fresh strings making use of the? uncooked suffix:.import nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In