-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ui5-tooling-modules] includeAssets
not respected in middleware
#1074
Comments
Rgd. Rgd. |
includeAssets
not respected in ui5-tooling-modules-middleware
includeAssets
not respected in middleware
@HymanZHAN let's use the #1049 to track the feature request for the If you are OK with my answer regarding |
Got it. Wasn't aware that the middleware has full access to I'd also like to learn about how the middleware decides which version of |
@HymanZHAN - you can take a look into the resolveModule function The logic is as follows: resolveModulePath Once a value is found in the one of the properties above it loads either: resolveNodeModule This is on a very coarse view explained how the module resolution works. I tried to imitate the node lookup does but I needed to enhance it. The final truth is in the code... 😉 |
@HymanZHAN as mentioned above, we use #1049 to track the feature request for the addToNamespace option and close the issue here fore the other question. |
Is your feature request related to a problem? Please describe.
When using 3rd party libraries, I'd like to include other assets like CSS while developing locally. However, it seems that
includeAssets
doesn't apply toui5-tooling-modules-middleware
.Describe the solution you'd like
I want my CSS to be copied and served from
/resources
when developing locally using@ui5/cli
.Describe alternatives you've considered
Load the stylesheets from CDN.
Additional context
I wish the configurations like
includeAssets
andaddToNamesapce
are aligned betweenserve
andbuild
. Otherwise, how are we supposed to verify/develop things locally?The text was updated successfully, but these errors were encountered: