You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Application created with npm init vite@latest my-lit-app -- --template lit
When developing with npm run dev, the application works well.
When creating a production build with npm run prod, the build completes successfully. However, the dist folder only contains .js files, not the index.html entrypoint.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
I believe this is the expected behavior in lib mode, in docs:
With Vite, you can use your index.html for that purpose to get the smooth development experience.
index.html is used for dev testing, if you want to include index.html, maybe you should use index.html as the entry point or not use lib mode. Please clarify your intentions.
You are right. I got confused because I compared it with the Vue template which did include the index file. I assumed all the templates were equivalent. Thanks!
Describe the bug
Application created with
npm init vite@latest my-lit-app -- --template lit
When developing with
npm run dev
, the application works well.When creating a production build with
npm run prod
, the build completes successfully. However, thedist
folder only contains.js
files, not theindex.html
entrypoint.Reproduction
The issue can be reproduced on https://vite.new/lit by running
npm run build
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: