Skip to content

How to Folder Publish after Vite has been added to the solution? #1

@theKingdomAge

Description

@theKingdomAge

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions