Задать вопрос
@B2ng4

Почему не работает yuicompressor В PHP Storm?

Настроил yuicompressor по гайду
В Scopes
67f619df16584247332953.png
В File Watchers
67f61a0667783519264179.png
Но при изменении любого 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 <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.
                            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
  • Вопрос задан
  • 300 просмотров
Подписаться Средний Комментировать
Пригласить эксперта
Ответы на вопрос 1
Насколько я вижу из того, что yuicompressor написал Вам, аргументы заданы неверно.
Должно быть
-o $FileNameWithoutExtension$.min.css $FileName$
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы