How to auto minify all js and css please?

Hello,

 

I would like to know if there is a way to auto minify all my css and js code please. Also can it be unminified from the software directly.

 

Thanks

0
1 comment

Hi there,

IDE does not have such functionality built-in.

The best approach would be writing some npm/gulp/grunt or alike task (that does all the job -- as it will be aware of all needed files and what to do with them/in what order) and call it when needed (IDE has convenient way of calling them from within IDE -- dedicated tool window with the list of tasks or even as separate Run/Debug Configuration). e.g. https://blog.jetbrains.com/webstorm/2014/11/gulp-in-webstorm-9/

You may also use File Watchers -- to execute any specific external command on file save.

0

Please sign in to leave a comment.