yui / yuicompressor

YUI Compressor
http://yui.github.com/yuicompressor/
Other
3.01k stars 662 forks source link

CSS Compressing don't working #339

Closed sl3w closed 3 years ago

sl3w commented 3 years ago

Added yuicompressor to PhpStorm. It working with JS, but not with CSS. I got a comment in terminal:

"C:\Program Files\JetBrains\PhpStorm 2020.2.3\jbr/bin/java" -jar "E:\YUI JS compresser\yuicompressor-2.4.8.jar" -i style.css -o style.min.css YUICompressor Version: 2.4.8

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

Global Options -V, --version Print version information -h, --help Displays this information --type <js|css> 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'.

Process finished with exit code 1

Can someone help to fix it?

sl3w commented 3 years ago

Lol, I fixed it by deleting "-i" here:

image