0

I wanted to know as to how a Component-preload.js file can be generated for a UI5 application in SAP Web IDE without using gulp.js. Is there a way to do it?

Boghyon Hoffmann
  • 17,103
  • 12
  • 72
  • 170
Bhavana
  • 1
  • 1
  • 1
  • Does this answer your question? [Component-preload.js generation](https://stackoverflow.com/questions/45061298/component-preload-js-generation) – Boghyon Hoffmann Nov 16 '19 at 23:45

1 Answers1

0

When using the (old) WebIDE the preload file can get generated, however, I'd suggest to consider switching to the (new) WebIDE Full-Stack. This new WebIDE works with NPM, Grunt etc. When triggering the build the preload files get generated seamlessly.

See my following blogs for some details:

You could also have a look at my example app on github made for the new WebIDE. There you can see the Gruntfile (which is basically the default one generated by the new WebIDE when creating new UI5 projects):

module.exports = function(grunt) {
    "use strict";
    grunt.loadNpmTasks("@sap/grunt-sapui5-bestpractice-build");

    // good for debugging
    grunt.log.writeln("\n### grunt.config() ###\n" + JSON.stringify(grunt.config(), null, 2));

    grunt.registerTask("default", [
        "clean",
        "lint",
        "build"
    ]);
};
Nabi
  • 2,536
  • 1
  • 16
  • 18