Home > @lynx-js/template-webpack-plugin > TemplateHooks > encode

TemplateHooks.encode property

This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Call the encode process.

Signature:

encode: AsyncSeriesBailHook<{
        encodeOptions: EncodeOptions;
        intermediate: string;
    }, {
        buffer: Buffer;
        debugInfo: string;
    }>;