Configuring YUI Compressor in PHPStorm to compress css and js files
The last notes
All English-language materials have been translated fully automatically using the Google service
Go to Tools - & gt; File Watchers
and add two entries like in the photo

Customize each post like in the photo

Program: PATH_TO_COMPRESSOR \ yuicompressor-2.4.8.jar
Arguments: $ FileName $ -o $ FileNameWithoutExtension $ .min.js
Outpit Path: $ FileNameWithoutExtension $ .min.js
To remove the minification loop min.min.js
let's create two new Scopes

And select them in the Scopes
field of the corresponding minifier
file:*.js&&!file:*.min.js
file:*.css&&!file:*.min.css
Comments