Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Custom JET component registration and minified files

User_LXGWIJul 13 2016 — edited Jul 13 2016

Hello,

Per my management instruction I was asked to create a custom Oracle JET component... so I figured out by looking at existing components at debug library... Finally I got a working version of my custom component.. something similar to:

oj.__registerWidget("oj.unoWidget", $['oj']['baseComponent'],

{

/// Some input options and logic here

})

Everything works great for me when running JET with debug library setup:

requirejs.config(

{

     paths: {

          //Some other dependencies

          "ojs": "libs/oj/v2.0.0/debug" ,

     }

})

However when switching to minified version of  Oracle JET... the methods does not have same name... ie:    oj.__registerWidget

Question is... what is the best way to package my custom component with minified version ? 

    Should I minify it myself ?  ... if so... should I minify the debug version of code ?  (which I don't think it is best idea... since I suspect debug  has more stuff that I won't need on a production environment )

Thanks in advance

Daniel

Comments
Post Details
Added on Jul 13 2016
1 comment
518 views