~/talk

Create a Component Library With Vite, Vue and Tailwind

Talkat Connect.Tech 2022 · 2022-11-07..11-09· [vue, web-platform]
slides:none on file

Step-by-step guide to build and publish a Vue component library using Vite, Tailwind and PostCSS, creating reusable skeleton loader components, exporting both a global plugin and individual components, and producing ES and CJS bundles for npm. Shows exact Vite config: Vite build library mode, rollup externals for Vue, and preserveModules for tree shaking, plus postcss-cli to emit dist/index.css. Demo app loads the skeletons, supports dark mode, and npm publish succeeds.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 4:15Setting up the project
  3. 10:11File structure for components
  4. 13:59Designing skeleton loaders
  5. 17:12Creating the entry file
  6. 18:37Configuring Vite build
  7. 21:48Configuring package.json
  8. 25:00Building and publishing
  9. 26:25Testing the component library
  10. 30:14Testing and accessibility
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.