Skip to content

TypeScript API / @laikacms/vite-plugin / writeChunk

Function: writeChunk() ​

ts
function writeChunk(
   root, 
   id, 
   body
): Promise<boolean>;

Write the chunk for id. Returns true when the file changed.

Parameters ​

ParameterType
rootstring
idLaikaId
bodystring

Returns ​

Promise<boolean>

Released under the MIT License.