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。

  • 相关阅读:
    计时器
    练习
    实现跨层组件通信(Vue3___defineComponent)
    微信内置浏览器h5监听手机返回键
    ECharts柱状图线形图
    easyui日期到月份
    uni-app传参
    js浏览器唯一标识
    知网论文查重如何查呢,免费的是真的吗?
    淘宝检测论文查重可靠吗?怎么检验?
  • 原文地址:https://www.cnblogs.com/webooxx/p/2767650.html
Copyright © 2011-2022 走看看