question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to serve dist folder, e.g. ui5 serve --dist

See original GitHub issue

Expected Behavior

I would like to be able to serve the dist resources via the ui5 serve command, e.g. via a dedicated command line options like --dist.

Current Behavior

As of today, the best workaround is to create a separate ui5.yaml file (e.g. ui5-dist.yaml) which shifts the project resources configuration for webapp to the dist folder:

specVersion: ‘1.0’
metadata:
 name: openui5-sample-app
type: application
resources:
 configuration:
   paths:
     webapp: dist

Now the project can be served from the dist folder via ui5 serve --config ui5-dist.yaml.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:7
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
petermuessigcommented, May 30, 2019

Thanks @codeworrior , I remember again - but I also wanted to document this simple idea here of having just two configuration files and use one for serve from dist.

1reaction
nheblingcommented, Dec 6, 2022

Has this been added in the meantime. I’m exactly looking for that as I’m trying to include a third-party npm module + having the sources of my UI5-library project in TypeScript. Currently it’s pretty complicated to setup and understand as there are various tools, shims, tasks etc. required for “just” including an npm-library and fixing the paths. Now it seems that in the “dist” folder everything looks pretty good and I just want to take that output and run ui5 serve. If I do it now ui5-serve will run an intermediate build result where the reference to the npm-library still does not work (always looks for it on “https://ui5.sap.com/resources/” (don’t know why this is the default for anything non- “sap/” and not a local lookup)…so it would require possibly another task, tool, shim or whatever to fix that intermediate build results to be able to run via ui5-server. Would be nice if there would be a small parameter to just run “ui5 serve” from the “dist” folder. Easy and understandable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SCP UI5 build - change build path or safely redirect
Hi, I have an old UI5 project that was developed without any build ... and always generates in the "dist" folder "/index.html" and...
Read more >
The dist folder created by ui5-tooling build doesn't work when ...
After terminating my dev, I run ui5 build and the dist folder is created. No errors are shown. I then zip the contents...
Read more >
Folder Structure: Where to Put Your Files - SAPUI5 SDK
The image above shows a screenshot taken from SAP Web IDE, and is only meant to serve as an example. This applies to...
Read more >
@sap/ux-ui5-tooling - npm
Furthermore, the module expose the cli fiori offering e.g. the fiori run command is a wrapper of the ui5 serve commands and provides...
Read more >
sap/ux-ui5-tooling - npm.io
Furthermore, the module expose the cli fiori offering e.g. the fiori run command is a wrapper of the ui5 serve commands and provides...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found