hguser
hguser

Reputation: 36068

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) ?

Upvotes: 1

Views: 337

Answers (1)

John
John

Reputation: 5468

http://plovr.com/ seems to be a favorite among those I talk to.

Upvotes: 1

Related Questions