cancel
Showing results for 
Search instead for 
Did you mean: 

How to create -dbg.js file from an controller.js file in sap webide?

Dashrath_Singh
Explorer
0 Kudos

Hi Experts,

We want to create minified version of our ui5 project. We are developing in webide. We are able to create dist folder and inside that we are able to create component-preload.js file also using build.

My requirement is, like in SAP Fiori standard app, we can see each js file has corresponding -dbg.js file. I also want to create all corresponding dbg.js files.

Experts, please guide me how can i achieve it.

Thanks a lot.

Regards,
Dashrath Singh

Accepted Solutions (0)

Answers (1)

Answers (1)

NagaPrakashT
Contributor
0 Kudos

Hello,

Grunt tool can generate -dbg.js files. As of now SAP Web IDE can only generate component-preload.js file.

You can use the grunt_openui5 task runner to generate minified versions

https://github.com/SAP/grunt-openui5

https://www.sap.com/india/developer/tutorials/webide-grunt-basic.html

Thanks,

NP

Dashrath_Singh
Explorer
0 Kudos

Dear Naga,

Thanks for guiding me. I followed same steps mentioned in tutorial which you had shared with me.But i am not getting build option in context menu. Could please guide me how to enable that?

Thanks,

Dashrath Singh

Former Member
0 Kudos

Dear Naga,

I found out the solution. I was doing all these in normal sap webide. For this, we need to enable Multi Cloud Version.

It can be enabled like this. In this,i can see Build option also in menu.

Now i am able to create -dbg.js file for every .js files.

Thanks a lot.

Regards,
Dashrath Singh