You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 24, 2023. It is now read-only.
It looks like the openui5_preload task by deafuly includes "Component-preload.js" files. Hence, with multiple executions fo the same task, the previous preload will always be appended and the file become bigger and bigger.
Is there a way to specifically exclude existing preload files from the SRC? I think this should also be a default
The text was updated successfully, but these errors were encountered:
That's right and I already thought about excluding it by default. As there should never be a case where it is intended to include the preload into the same file again I think it is save to change that.
In the meantime you can define an exclude in your configuration:
(I just saw that the readme example is not correct as excludes need to start with an exclamation mark. I will fix that)
openui5_preload: {component: {options: {resources: {cwd: "webapp",prefix: "my/app"},dest: "webapp"},components: {"my/app": {// note that defining the "src" property overwrites all default includes/excludessrc: ["my/app/**",// include all available resources (this is the default)"!my/app/Component-preload.js"// exclude the Component-preload.js]}}}}
This change will always add an exclude to prevent adding a
previously created preload file into the same preload.
As there should be no use case to do that this is enabled
by default without an option to disabled it.
Other preload files (e.g. from sub-components) should be
possible to include.
Fixes#21
It looks like the openui5_preload task by deafuly includes "Component-preload.js" files. Hence, with multiple executions fo the same task, the previous preload will always be appended and the file become bigger and bigger.
Is there a way to specifically exclude existing preload files from the SRC? I think this should also be a default
The text was updated successfully, but these errors were encountered: