Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 13, 2017 at 01:52 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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