cgutierrez / JsMinifier

Sublime Text plugin for javascript minification using Google Closure compiler
131 stars 18 forks source link

Feature Request : "Minify on save" #20

Open WilliamVercken opened 10 years ago

WilliamVercken commented 10 years ago

Hi !

I here to request an option : is it possible to minify a script.js to script.min.js when we are saving the original file (script.js) ? Something like "minify_on_save": false, by default.

Each time I modify a file, I have to save it (ctr + s) and then to minify it (ctr + p , "min", enter). It's a waste of time, and sometimes I forget to do it...

Thank you very much for your answer (positive or negative) ! :)

WilliamVercken commented 10 years ago

IT'S A BAD IDEA !! I didn't thought about the case when there already is a .min.js file minify by another tool, or when we just don't want to have a minified file added...

BUT ! We can have an optio "save_on_minify": false, (the inverse) : each time I minify a js, it automatically save the original.

It not a great saved time, but it less handling... :)