yui-compressor(1)

yui-compressor1

Javascript/css minifier

Usage

yui-compressor [options] [input file]

Overview

Global Options

-h, --help

Displays this information

--type <js|css>

Specifies the type of the input file

--charset <charset>

Read the input file using <charset>

--line-break <column>

Insert a line break after the specified column number

-v, --verbose

Display informational messages and warnings

-o <file>

Place the output into <file>. Defaults to stdout.

JavaScript Options

--nomunge

Minify only, do not obfuscate

--preserve-semi

Preserve all semicolons

--disable-optimizations

Disable all micro optimizations

If no input file is specified, it defaults to stdin. In this case, the 'type' option is required. Otherwise, the 'type' option is required only if the input file extension is neither 'js' nor 'css'.

Examples

The following example demonstrates how to use yui-compressor

yui-compressor -o compressed.js original.js

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0–11
  2. 12–13

Author

This manual page was written by Damien Raude-Morvan <[email protected]> and Michael Gilbert <[email protected]>, for the Debian GNU/Linux system (but may be used by others).

From yui-compressor 2.4.8-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.