Skip to content
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

Read Vite Manifest from another referenced project #128

Open
AleksandrRogov opened this issue Sep 1, 2024 · 0 comments
Open

Read Vite Manifest from another referenced project #128

AleksandrRogov opened this issue Sep 1, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@AleksandrRogov
Copy link

Is your feature request related to a problem? Please describe.
This is problem that I encountered when trying to setup the Vite.AspNetCore for an asp.net web project that has a dependency on a separate project (let's call it "Assets") that contains react and other scripts with Vite configured in it.

Particularly, when VDS is disabled, the vite-src stops working because Vite.AspNetCore cannot locate the Vite manifest file. With VDS enabled it works fine (because the manifest is not being used).

Describe the solution you'd like
It would be great if it was possible to somehow configure Base or something similar to load the manifest from another project.

Describe alternatives you've considered
I tried to set Base property the following way ../../Assets/wwwroot which obviously did not work correctly, because Base is also being used in the Vite Tag Helper as a prefix for vite-src. On a positive note, the PhysicalFileProvider found the manifest in another project!

I could not find any other way to make it work except for copying the manifest from the Assets project to the main Web one. Which is what I am doing currently.

I understand that it may not be what this library was intended for but I thought I should give you this idea.
Thank you.

@AleksandrRogov AleksandrRogov added the enhancement New feature or request label Sep 1, 2024
@Eptagone Eptagone added the help wanted Extra attention is needed label Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants