jscl icon indicating copy to clipboard operation
jscl copied to clipboard

Minified version of jscl.js

Open noloop opened this issue 4 years ago • 4 comments

It would be nice to have a minified version of jscl.js like jscl.min.js.

I tried https://cdn.jsdelivr.net/npm/[email protected]/jscl.min.js and returns always https://cdn.jsdelivr.net/npm/[email protected]/jscl.js content.

noloop avatar Jun 29 '20 12:06 noloop

I did this. And really was very slow. However at 1,5mb I get 844Kb, It's better.

jscl.min.js.zip

noloop avatar Jun 29 '20 14:06 noloop

It would be pretty nice to get the 'release' pipeline automated with Github Actions, so we can tag some release and do a release (including minification) automatically.

davazp avatar Jun 29 '20 16:06 davazp

I did this. And really was very slow. However at 1,5mb I get 844Kb, It's better.

jscl.min.js.zip

Hey noloop, this is great, may I ask: How did you do this? Which compressor are you using?

I tried uglify, it was just reduced by 0.1M

VitoVan avatar Apr 25 '23 09:04 VitoVan

Ah, the following command could do a good job:

uglifyjs jscl.js -c -m -o jscl.min.js

it turns 2 MB jscl.js to 1.1 MB

VitoVan avatar Apr 25 '23 09:04 VitoVan