简体   繁体   中英

auto compile the javascript source codes using closure-compiler

I am using the closure-compiler.jar to compress my sources codes.

And we use the ADVANCED_OPTIMIZATION model,so we have to be careful when we write the codes.

For example, we have to use the

obj["prop"] instead of obj.prop to export the property 'prop'.

So in order to make sure the compressed codes work, we will compress it once we modify the codes.

However,our project is under develpment,so the modifiation is frequent.

Once we update the code (even add a char) we have to run the

java -jar xx.jar ......

So I wonder if there is any tool can monitor the change of the source code,then compress them and make them formatted pretty in windows (like winLess for less) ?

http://plovr.com/似乎是我与之交谈的人的最爱。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM