Skip to content

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 ​

ParameterType
optionsLaikaVitePluginOptions

Returns ​

Plugin

Released under the MIT License.