zoukankan      html  css  js  c++  java
  • YUI(YUIcompressor)压缩参数选项

    在命令行中 输入  java -jar yuicompressor-2.4.2.jar --help 会有提示信息,当然,当前目录下必须有yuicompressor-2.4.2.jar

    Usage: java -jar yuicompressor-x.y.z.jar [options] [input file]

    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  JS特有选项
    --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'.

    如果没有指定输入文件,默认为标准输入。在这种情况下,'类型' 选项是必须的。除非文件名不是 js 或者 css。

  • 相关阅读:
    IIS应用程序池标识(程序池账户)ApplicationPoolIdentify
    笔记二 sql 基础知识
    笔记三 索引讲解
    SqlParameter使用参数错误,提示请求超时或则查询速度过慢
    SVN 常见操作
    Excel 基本操作
    sql server row_number分页排序
    本地部署IIS
    sql中去掉字段的所有空格
    sql取逗号前后数据与批量修改某一字段某一值
  • 原文地址:https://www.cnblogs.com/webooxx/p/2767650.html
Copyright © 2011-2022 走看看