Preserve function name uglify mangle

1.6k Views Asked by At

We're linking together Javascript and AS3. For this to work AS3 needs to know the function names of the Javascript methods.

We're using Uglify to optimize our Javascript code. Now I don't want these specific functions to be mangled. All other functions can be mangled just fine. Is it possible to accomplish this?

1

There are 1 best solutions below

2
SharpEdge On

Use this parameter: --reserved-names “myFunction”

Possible duplicate:Prevent uglifyjs from renaming certain functions