Replies: 1 comment 1 reply
-
Vite seems to have two types of publishing modes, reusable library and application. The default Vite setup seems to be in reusable library mode. You can see the comments in my vite config in this one: https://github.com/e111077/vite-lit-element-ts-sass I also wrote the lit cli's element starter you can invoke with https://github.com/lit/lit/tree/main/packages/labs/cli/src/lib/init/element-starter/templates It makes a minimal shareable element without all the docs stuff in the repo you posted above. The reason we created the Regardless, Vite is generally a good solution for publishing your components. Just make sure to serve your build output to the user on NPM. Justin on the team has an old article that has excellent checks before you publish which still hold up to this day. |
Beta Was this translation helpful? Give feedback.
-
In re: https://github.com/lit/lit-element-starter-ts
Has anyone tried publishing lit components via vite-based starter?
Any examples?
Any potential pitfalls?
Beta Was this translation helpful? Give feedback.
All reactions