Hi,
I am trying to develop a JIRA plugin (WebWork Item) in which I need to include a jQuery based plugin. Everything works fine and as expected if I disable Resource Compression using :
<compressResources>false</compressResources>
But the moment I turn it ON it tries to rename the main function name (which I use to initialize my plugin) due to which my javascript code is unable to instantiate the plugin (since it has been renamed to some short variable name during resource compression process).
After further exploration, I found that JIRA uses YUI compiler for compression of resources. I have worked previously with YUI compiler and there was a parameter named "externs" which was used to specify the external dependencies for that particular file which is being compressed so that the compiler does not rename the function calls which are defined outside the script file.
Can anyone please let me know how we can achieve this in JIRA plugin.
Thanks
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.