cancel
Showing results for 
Search instead for 
Did you mean: 

when using vs code to deploy Fiori to on premise, can I only minified preload file instead of all js

Rayman
Explorer
232

Hi All,

Currently if using VS code to deploy Fiori app to On Premise, only the minified js file (and its map file) are uploaded to ABAP backend. However, we need the original js file except for the "Component-preload.js" file, just as the old Web IDE does. I have tried the option "ui5 build --exclude-task=minify", but the generated preload file will have the original js file with this option, which apparently is not good for performance. Is there some solution to deploy the original js file and minified preload file to ABAP backend?

Thanks,

Rayman 

View Entire Topic
junwu
Active Contributor

1.you should not use abap repository as the source of your code

2. it is deployed, you just cannot see it in se80.

if you use web ide to download the project from the abap respository, you will see those dbg file.

Rayman
Explorer
0 Kudos
Thanks for the clarifying. Yes, I can see the dbg file after importing into Web IDE. I assume we can add custom task in ui5.yaml to copy original js file to dist folder and remove map and dbg files. In this way, we can achieve the same behaviour as the old Web IDE's deployment, pls let me know if this is feasible. As to why abap repository can't be used as source control, is it one of SAP guidelines?
junwu
Active Contributor
0 Kudos
no no no. just use git and vs code