-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Fresh lit+ts project does not build full dist #12431
Comments
|
Duplicate of #7009 |
It's because lit and lit-ts are library target configs instead of app target configs like others (react / vue). I've no idea why lit's templates are set to lib 🤔. It seems to be library target from the very beginning. 830f3d3 But should we change lit & lit-ts to app target(seems like a breaking change) or document it in the CLI? For example |
I was recently confused by this, strong vote to fix! |
resolved in #12459. |
Describe the bug
When trying to use the boiler plate lit project the production build does not correctly export the files for serving.
After visiting in the browser I get a 404 error:
Cannot GET /
. I think that this is because there is not index.html generated in thedist
? Thedist
only has two files:vite-project.js vite.svg
.Reproduction
https://stackblitz.com/edit/vitejs-vite-dkycbq?file=index.html
Steps to reproduce
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: