YUI-COMPRESSOR(1)
β¨ 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.jsorcss, 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 πβ¨π¦
π¦ where this page comes from
- debian bookworm: yui-compressor 2.4.8-3 Β· BSD-3-Clause
- debian trixie: yui-compressor 2.4.8-3 Β· BSD-3-Clause
- ubuntu noble: yui-compressor 2.4.8-3 Β· BSD-3-Clause
- ubuntu questing: yui-compressor 2.4.8-3
- ubuntu resolute: yui-compressor 2.4.8-3build1 Β· BSD-3-Clause
- ubuntu stonking: yui-compressor 2.4.8-3build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms