Skip to Content
0

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

Sep 13, 2017 at 01:29 PM

202

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Naga Prakash Sep 13, 2017 at 01:52 PM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

capture.png (17.6 kB)
0
Former Member

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

0