TypeScript API / @laikacms/vite-plugin / laikacms
Function: laikacms()
ts
function laikacms(options?): Plugin;Vite/Rolldown plugin that loads Laika CMS content as ES modules via the laika: protocol, generates matching TypeScript declarations, and hot-reloads on content change. Content is inlined at build time, so it works in a fully static, client-only build.
Parameters
| Parameter | Type |
|---|---|
options | LaikaVitePluginOptions |
Returns
Plugin