Installation Install and add nuxt-svgo-loader to your nuxt.config. npxnuxi@latestmoduleaddnuxt-svgo-loader exportdefaultdefineNuxtConfig({modules:['nuxt-svgo-loader'],svgoLoader:{// Options here will be passed to `vite-svg-loader`}}) !NOTESincenuxt-svgo-loaderis a Nuxt module based onv...
npx nuxi@latest module add nuxt-svgo-loader exportdefaultdefineNuxtConfig({modules:['nuxt-svgo-loader'],svgoLoader:{// Options here will be passed to `vite-svg-loader`}}) [!NOTE] Sincenuxt-svgo-loaderis a Nuxt module based onvite-svg-loader, the configuration forsvgoLoaderremains ident...
vite-plugin image compression image optimization svgo sharp.js fatehak •1.1.8•8 months ago•8dependents•MITpublished version1.1.8,8 months ago8dependentslicensed under $MIT 150,225 svgo-browser svgo tool for browser and node usage ...
exportdefaultdefineNuxtConfig({modules:['nuxt-svgo-loader'],svgoLoader:{// Options here will be passed to `vite-svg-loader`}}) Note Sincenuxt-svgo-loaderis a Nuxt module based onvite-svg-loader, the configuration forsvgoLoaderremains identical to that ofvite-svg-loader. You can refer to...
i have a feeling its linked to jpkleemans/vite-svg-loader#117 ? Mini-ghost commented on Apr 1, 2024 Mini-ghost on Apr 1, 2024 Owner I'm thinking this issue might be tied to the nitro server, which seems to struggle with importing file types like .png and .svg. If we're looking...
Vite If your Nuxt app uses Vite, this module addsvite-svg-loaderto the underlying Vite configuration. All due credit forvite-svg-loaderto its author,@jpkleemans. We use a modified copy of this vite plugin for auto loading icons with extra control using anuxt-iconcomponent. ...
A vite plugin which can transform svg icon to vue component. Support optimization via SVGO, support customize svg color and size. svg rollup-plugin svgo vue3 vite-plugin svg-component vite-svg-loader vite3 svgo-plugin vite4 svg-plugin vite5 Updated Jan 11, 2024 JavaScript ...
npx nuxi@latest module add nuxt-svgo-loader export default defineNuxtConfig({ modules: ['nuxt-svgo-loader'], svgoLoader: { // Options here will be passed to `vite-svg-loader` } }) Note Since nuxt-svgo-loader is a Nuxt module based on vite-svg-loader, the configuration for svgoLo...