cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

Rayman
Explorer
662

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 

Accepted Solutions (1)

Accepted Solutions (1)

junwu
SAP Champion
SAP Champion

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
SAP Champion
SAP Champion
0 Kudos
no no no. just use git and vs code

Answers (1)

Answers (1)

Rayman
Explorer
0 Kudos

@Marian_Zeis , the debug file is in the dist folder, however, it is not deployed to SAP ECC backend, as shown below.

Rayman_0-1730953157263.png

@junwu ,

We need the original js file as we use ABAP repository instead of GIT, which can maintain the same style as Web IDE. So we need the original js source file if some team member wants to open the project with Web IDE.

Thanks,
Rayman

 

 

 

 

Marian_Zeis
Active Contributor

The files are there but just not visible.

There are here in the green box. You can see the matching in the UI5RepositoryPathMapping.xml file

iScreen Shoter - Google Chrome - 241107080705.jpg