Configuring YUI Compressor in PHPStorm to compress css and js files
The last notes
Website hosting
If you are choosing hosting for your project, I recommend Timeweb. Modern infrastructure, a wide range of plans from starter options to high-load VPS, and responsive tech support that actually helps instead of sending template replies. I host some of my own projects there and recommend it to my clients.
Go to site Affiliate link. The price remains the same for you.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