I am using Visual Studio 2022 Preview. When I run the site in debug mode it works/displays as it should. But if I Publish it to a folder to use with IIS the .js and .css files are not found.
The same problem can be reproduced running in debug mode by going into the .env file and changing ASPNETCORE_ENVIRONMENT=Development
to
ASPNETCORE_ENVIRONMENT=Production
I am new to Vite and haven't found the solution to this yet.
Thanks for your help/time
I am using Visual Studio 2022 Preview. When I run the site in debug mode it works/displays as it should. But if I Publish it to a folder to use with IIS the .js and .css files are not found.
The same problem can be reproduced running in debug mode by going into the .env file and changing ASPNETCORE_ENVIRONMENT=Development
to
ASPNETCORE_ENVIRONMENT=Production
I am new to Vite and haven't found the solution to this yet.
Thanks for your help/time