Sleep

Nuxt Svgo Loading Machine - Vue.js Nourished #.\n\nNuxt element to pack SVG reports as Vue components, making use of SVGO for marketing.\nFunctions.\nLots SVG files as Vue components.\nEnhance SVGs making use of SVGO.\nSeamless combination along with Nuxt DevTools.\nSetup.\nPut in as well as include nuxt-svgo-loader to your nuxt.config.\n

Whichever matches your plan manager.pnpm add -D nuxt-svgo-loader.npm put in -D nuxt-svgo-loader.yarn add -D nuxt-svgo-loader.export nonpayment defineNuxtConfig( modules: [' nuxt-svgo-loader'],.svgoLoader: // Possibilities here will definitely be exchanged 'vite-svg-loader'. ).[TAKE NOTE] Considering that nuxt-svgo-loader is a Nuxt element based upon vite-svg-loader, the setup for svgoLoader continues to be the same to that of vite-svg-loader. You may describe the paperwork of vite-svg-loader for the accessible choices listed here.Use.Component.SVGs could be explicitly imported as Vue parts making use of the? component suffix:.import NuxtSvg from '~/ assets/svg/nuxt. svg'.//.LINK.SVGs may be imported as URLs utilizing the? link suffix:.bring in nuxtSvgUrl from '~/ assets/svg/nuxt. svg?url'.// nuxtSvgUrl === '/ _ nuxt/assets/svg/ nuxt.svg'.Raw.SVGs can be imported as raw strings utilizing the? fresh suffix:.bring in nuxtSvgRaw coming from '~/ assets/svg/nuxt. svg?raw'.// nuxtSvgRaw === '.

Articles You Can Be Interested In