|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.isdc.wro.extensions.processor.support.uglify.UglifyJs
public class UglifyJs
The underlying implementation use the uglifyJs untagged version: 1.2.6-SNAPSHOT (commited at 2012-02-16 21:30:46)
https://github.com/mishoo/UglifyJS.
The uglify script is resulted from merging of the following two scripts: parse-js.js, process.js. The final version
is compressed with packerJs by Dean Edwards.
| Field Summary | |
|---|---|
static String |
DEFAULT_UGLIFY_JS
The name of the uglify script to be used by default. |
| Constructor Summary | |
|---|---|
UglifyJs(boolean uglify)
|
|
| Method Summary | |
|---|---|
static UglifyJs |
beautifyJs()
Factory method for creating the beautifyJs engine. |
protected InputStream |
getScriptAsStream()
|
String |
process(String filename,
String code)
|
UglifyJs |
setReservedNames(String reservedNames)
some libraries rely on certain names to be used, so this option allow you to exclude such names from the mangler. |
static UglifyJs |
uglifyJs()
Factory method for creating the uglifyJs engine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_UGLIFY_JS
| Constructor Detail |
|---|
public UglifyJs(boolean uglify)
uglify - if true the code will be uglified (compressed and minimized), otherwise it will be beautified (nice
formatted).| Method Detail |
|---|
public static UglifyJs uglifyJs()
public static UglifyJs beautifyJs()
public UglifyJs setReservedNames(String reservedNames)
reservedNames - the reservedNames to setprotected InputStream getScriptAsStream()
public String process(String filename,
String code)
throws IOException
data - js content to process.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||