| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | < 17 hours ago | 1.2 kB | |
| v2.0.0-beta.13 source code.tar.gz | < 17 hours ago | 5.0 MB | |
| v2.0.0-beta.13 source code.zip | < 17 hours ago | 6.1 MB | |
| Totals: 3 Items | 11.1 MB | 0 | |
Minor Changes
shadcn-templ bundleminifies the component JavaScript, likenext buildminifies shadcn's components: with every component installed the bundle drops from 967 KB to 387 KB, and from 227 KB to 120 KB gzipped.init,addandbundlewrite it minified,bundle --watch(whichtask devruns) keeps it readable for debugging, likenext dev. Component sources are never minified. Both modes use the same file name, a hash of the sources, so the committedcomponents/scripts_bundle.godoes not change between development and production builds. Minification runs on your machine through esbuild's Go library, never at runtime, and needs no Node. Nothing to migrate, see CLI.
Breaking Changes
- Since
v2.0.0-beta.11the components call new helpers inutils/shadcn-templ.go(utils.Direction,utils.DirectionAttributes). Onlyinitinstalls that file, so a project that updates its components withadd -ofails to build withundefined: utils.Direction(#631). Refresh it after updating:bash shadcn-templ add utils -o templ generate