Sleep

Nuxt Svgo Loader - Vue.js Feed #.\n\nNuxt component to load SVG reports as Vue parts, utilizing SVGO for marketing.\nFunctions.\nLoad SVG files as Vue parts.\nMaximize SVGs using SVGO.\nSeamless integration with Nuxt DevTools.\nInstallation.\nPut up and also incorporate nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your plan manager.pnpm include -D nuxt-svgo-loader.npm install -D nuxt-svgo-loader.anecdote incorporate -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities listed here are going to be actually exchanged 'vite-svg-loader'. ).[TAKE NOTE] Due to the fact that nuxt-svgo-loader is actually a Nuxt element based upon vite-svg-loader, the arrangement for svgoLoader continues to be exact same to that of vite-svg-loader. You may pertain to the documentation of vite-svg-loader for the offered possibilities listed below.Use.Part.SVGs could be clearly imported as Vue elements making use of the? component suffix:.import NuxtSvg coming from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs may be imported as Links making use of the? url suffix:.import nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs can be imported as raw strings making use of the? raw suffix:.bring in nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In