yui-compressor
JavaScript/CSS minifier
Install
- All systems
-
curl cmd.cat/yui-compressor.sh
- Debian
-
apt-get install yui-compressor
- Ubuntu
-
apt-get install yui-compressor
- Kali Linux
-
apt-get install yui-compressor
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install yui-compressor
- Raspbian
-
apt-get install yui-compressor
- Dockerfile
- dockerfile.run/yui-compressor
yui-compressor
JavaScript/CSS minifier
The YUI Compressor is a JavaScript compressor which, in addition to removing comments and white-spaces, obfuscates local variables using the smallest possible variable name. This obfuscation is safe, even when using constructs such as 'eval' or 'with' (although the compression is not optimal is those cases) Compared to jsmin, the average savings is around 20%. The YUI Compressor is also able to safely compress CSS files. The decision on which compressor is being used is made on the file extension (js or css).