jakearchibald / svgomg

Web GUI for SVGO
https://jakearchibald.github.io/svgomg/
MIT License
5.76k stars 476 forks source link

Can this be a npm package? #384

Closed jetrotal closed 1 year ago

jetrotal commented 2 years ago

I'm working on this on codepen: https://codepen.io/jetrotau/pen/popOqrV image

And codepen supports importing npm packages like this: import * as svgo from "https://cdn.skypack.dev/svgo@2.7.0";

I'd love to be able to import svgomg library on codepen or anywhere like this.

thanks in advance!

konsumer commented 1 year ago

This is the library it uses. If you have your own UI, it should work as-is, for a "library version".

TrySound commented 1 year ago

Here's browser compatible version https://unpkg.com/browse/svgo@3.0.2/dist/svgo.browser.js