rtivital / svgo-browser

svgo fork with interface for browser and additional tweaks for node
Other
22 stars 1 forks source link

how to update the SVGO to latest version? #16

Open Manitej66 opened 1 year ago

Manitej66 commented 1 year ago

Thanks for the amazing repo! we need this package in our app, i'm just worried if the svgo used here is too old?

P.S: we use mantine at work! kudos!

rtivital commented 1 year ago

I believe you can use svgo in the browser without this package, svgo added this feature a while back

Manitej66 commented 1 year ago

Thanks for the prompt reply!

I did try using the bundled browser version of the svgo package but for some reason it’s not working with nextjs. I’m getting random page load errors. Probably due to SWC maybe.

Manitej66 commented 1 year ago

Tried importing like below:

import { optimize } from 'svgo/dist/svgo.browser.js'

it haven’t thrown any errors but when using the optimize function, my app was getting stuck and not working at all.

rtivital commented 1 year ago

Well, then you can try your luck with the svgo-browser then – there are not much difference between the svgo 1 and 3 anyway.