For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/template-webpack-plugin.encodeoptions.md.
这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/template-webpack-plugin > EncodeOptions

EncodeOptions interface

The options for encoding a Lynx bundle.

Signature:

export interface EncodeOptions 

Properties

Property

Modifiers

Type

Description

compilerOptions

Record<string, string | boolean>

customSections

Record<string, { type?: 'lazy'; encoding?: 'JsBytecode' | 'CSS'; content: string | Record<string, unknown> | undefined; }>

elementTemplate?

Record<string, unknown>

(Optional) Element template data used by encoders that support element template output.

lepusCode

{ root: string | undefined; lepusChunk: Record<string, string>; filename: string | undefined; } | undefined

manifest?

Record<string, string | undefined> | undefined

(Optional)