jscl-project / jscl

A Lisp-to-JavaScript compiler bootstrapped from Common Lisp
https://jscl-project.github.io
GNU General Public License v3.0
882 stars 108 forks source link

Minified version of jscl.js #363

Open noloop opened 4 years ago

noloop commented 4 years ago

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

I tried https://cdn.jsdelivr.net/npm/jscl@0.7.0/jscl.min.js and returns always https://cdn.jsdelivr.net/npm/jscl@0.7.0/jscl.js content.

noloop commented 4 years ago

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

jscl.min.js.zip

davazp commented 4 years ago

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.

VitoVan commented 1 year ago

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 commented 1 year ago

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