YUI-COMPRESSOR(1)

πŸ“¦
version 2.4.8 Β· 2 versions
  • 2.4.8 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.4.8 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ YUI-COMPRESSOR ✨

okay bestie, welcome to the yui-compressor manual page πŸ’– this is a JavaScript/CSS minifier and it's literally here to make your files smol and cute so they load fast. it lives in the User Commands section of the manual, and yes, we're about to go through it together, no skimming, no skipping 🫢


🌸 SYNOPSIS 🌸

yui-compressor [options] [input file]

that's it. that's the whole vibe. options + maybe an input file. slay.


πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the deal. this section is split into two little groups, and you're gonna want to know both.

πŸ’… Global Options

  • -h, --help β€” shows you this exact info. it's the "bestie explain" flag πŸ™ˆ
  • --type <js|css> β€” tells it what kind of input file you're feeding it. js or css, pick one ✨
  • --charset <charset> β€” reads your input file using the charset you specify in <charset>. no guessing games πŸ’œ
  • --line-break <column> β€” drops a line break in after the column number you give it. for when you want your output to breathe a lil 🌬️
  • -v, --verbose β€” spills the informational messages and warnings. the "tell me everything" mode πŸ‘€
  • -o <file> β€” puts the output into <file>. and heads up: it defaults to stdout if you don't say otherwise 🌈

πŸ¦‹ JavaScript Options

these ones are js-only, iykyk:

  • --nomunge β€” minify only, do not obfuscate. so it shrinks but doesn't rename stuff πŸŽ€
  • --preserve-semi β€” keeps all your semicolons. every single one. periodt πŸ’€
  • --disable-optimizations β€” turns off all the micro optimizations. all of them. gone πŸ™ˆ

🚨 okay this part is important so listen up bestie:

if you don't specify an input file, it defaults to stdin. and in that case, the type option is required, no cap. otherwise? the type option is only required if your input file's extension is neither js nor css. so like... name your files right and you're chillin πŸ’…


⭐ EXAMPLES ⭐

the following example demonstrates how to use yui-compressor:

yui-compressor -o compressed.js original.js

look at that. clean. iconic. your original.js goes in, compressed.js comes out, and the vibe check is passed πŸ”₯


🌈 SEE ALSO 🌈

  • /usr/share/doc/yui-compressor/README.md.gz

go read it if you want more, bestie πŸ“–


πŸŽ€ AUTHOR πŸŽ€

this manual page was written by Damien Raude-Morvan <drazzib@debian.org> and Michael Gilbert <michael.s.gilbert@gmail.com>, for the Debian GNU/Linux system (but may be used by others). absolute icons, we love them πŸ‘‘


and that's a wrap!! this was yui-compressor, from January 2010, part of the yui-compressor manual β€” thanks for reading the whole thing with me, you ate that fr fr πŸ’–βœ¨πŸ¦‹