ericwang14 / webutilities

Automatically exported from code.google.com/p/webutilities
0 stars 0 forks source link

Google Closure Compiler #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Can webutilities be used with Closure Compiler or is the config hardcoded to 
YUI?

Original issue reported on code.google.com by ryan.gas...@imemories.com on 20 Apr 2011 at 5:15

GoogleCodeExporter commented 9 years ago
It uses YUICompressor API at this time but supporting Closure Compiler is great 
idea. We will see if we can get it done for next release. Thanking for sharing 
an idea.

Original comment by rr.patil...@gmail.com on 20 Apr 2011 at 6:42

GoogleCodeExporter commented 9 years ago
Basic ClosureCompilerFilter is in - 
http://code.google.com/p/webutilities/source/detail?r=231. Need to support 
customizations/init params. 

Original comment by rr.patil...@gmail.com on 20 Apr 2011 at 8:41

GoogleCodeExporter commented 9 years ago

Original comment by rr.patil...@gmail.com on 20 Apr 2011 at 8:42

GoogleCodeExporter commented 9 years ago
Following initParams are supported corresponding to Closure Compiler options

1. acceptConstKeyword - boolean - default false
2. charset - output charset string - default UTF-8
3. formatting - PRETTY_PRINT or PRINT_INPUT_DELIMITER - default none
4. loggingLevel - one of INFO, SEVERE, WARNING etc. 

Note: This filter is still in beta and not recommended for on the fly use. 
Closure is better for static/build time compiling but not for on the fly 
compiling.

Original comment by rr.patil...@gmail.com on 17 Oct 2011 at 9:35