YUI Compressor在線壓縮(Javascript/Css) - aTool在線工具

只壓縮,不混淆. 保留不重要的分號(比如'}'前面的分號). 禁用細微優化

執行YUI Compressor命令:


YUI Compressor | Introduce

YUICompressor Version: 2.4.8pre

	Usage: java -jar yuicompressor-2.4.8pre.jar [options] [input file]

	Global Options
	  -V, --version             Print version information
	  -h, --help                Displays this information
	  --type                    Specifies the type of the input file
	  --charset                 Read the input file using 
	  --line-break              Insert a line break after the specified column number
	  -v, --verbose             Display informational messages and warnings
	  -o                        Place the output into . Defaults to stdout.
	                            Multiple files can be processed using the following syntax:
	                            java -jar yuicompressor.jar -o '.css$:-min.css' *.css
	                            java -jar yuicompressor.jar -o '.js$:-min.js' *.js

	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'.

推薦功能 / 猜你喜歡 | Suggest

評論 | Comments