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.md.
这是开发预览网站。请访问正式文档 lynxjs.org

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

template-webpack-plugin package

A webpack plugin that simplifies creation of template.js files to serve your bundles.

Classes

Class

Description

LynxEncodePlugin

LynxEncodePlugin

LynxTemplatePlugin

LynxTemplatePlugin

WebEncodePlugin

Functions

Function

Description

processTasmCSSDiagnostics({ cssDiagnostics, cssSourceMaps, context, emittedWarnings, fileExists, }, input)

Parses, source-map-resolves, and deduplicates TASM CSS diagnostics.

Interfaces

Interface

Description

CustomSectionNaming

Names the custom section a chunk is emitted as.

EncodeOptions

The options for encoding a Lynx bundle.

LynxEncodePluginOptions

The options for LynxEncodePluginOptions

LynxTemplatePluginOptions

The options for LynxTemplatePlugin

ProcessTasmCSSDiagnosticsOptions

Options for processTasmCSSDiagnostics().

ResolvedTasmCSSDiagnostic

A TASM CSS diagnostic with a formatted message and optional source map location.

TasmCSSDiagnostic

A CSS diagnostic emitted by TASM during template encode.

TemplateHooks

To allow other plugins to alter the Template, this plugin executes tapable hooks.

Variables

Variable

Description

CSSPlugins