Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt component to fill SVG documents as Vue components, making use of SVGO for optimization.\nAttributes.\nLots SVG files as Vue elements.\nMaximize SVGs making use of SVGO.\nSeamless combination along with Nuxt DevTools.\nInstallation.\nMount and also include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your package manager.pnpm include -D nuxt-svgo-loader.npm put in -D nuxt-svgo-loader.yarn incorporate -D nuxt-svgo-loader.export default defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Alternatives right here will definitely be exchanged 'vite-svg-loader'. ).[TAKE NOTE] Because nuxt-svgo-loader is actually a Nuxt component based upon vite-svg-loader, the arrangement for svgoLoader remains similar to that of vite-svg-loader. You may describe the documents of vite-svg-loader for the offered possibilities listed here.Usage.Element.SVGs may be clearly imported as Vue parts using the? part suffix:.import NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs may be imported as URLs using the? url suffix:.bring in nuxtSvgUrl coming from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs may be imported as raw strands utilizing the? uncooked suffix:.bring in nuxtSvgRaw from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In