I'm using PHPStorm. This is very great software for web developers.
When I want to compress my CSS & JS files in PHPStorm , I can't find any option in PHPStorm.
So, Please tell me how to compress CSS & JS code in PHPStorm.
Found Assets Compressor plugin. See if it helps.
EDIT - Changed to the new link as pointed by @spade
PHPStorm supports minification by File Watchers. It supports integration with the YUI Compressor "out of the box", but it has some problems, e.g., with calc() function. My solution is to use minifier:
npm install minifier
)Index.js
file can be executed via node index.js
command, but PHPStorm does not maintain this way ("Please set program to run!" error will be thrown). So I created .bat file with the following content:.
echo off
node path\to\minifier\index.js %*
Program
input field we set path to the .bat file. Note that Minifier uses a different method for setting the output path, so we have to change Arguments
field: $FileName$ --output $FileNameWithoutExtension$.min.css
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With