logologo
Guide
API
Rspeedy Config
React
Rspeedy Plugins
Webpack Plugins
CHANGELOG
React
Rspeedy
Webpack
About
Overview
Contribute
简体中文
English
Guide
Rspeedy Config
React
Rspeedy Plugins
Webpack Plugins
React
Rspeedy
Webpack
Overview
Contribute
简体中文
English
logologo
Webpack Plugins API

ChunkLoadingWebpackPlugin

ChunkLoadingWebpackPlugin

Constructor

apply

defaultOptions

ChunkLoadingWebpackPluginOptions

CssExtractWebpackPlugin

CssExtractRspackPlugin

Constructor

apply

defaultOptions

chunkFilename

cssPlugins

filename

loader

CssExtractRspackPluginOptions

chunkFilename

cssPlugins

filename

CssExtractWebpackPlugin

Constructor

apply

defaultOptions

loader

CssExtractWebpackPluginOptions

LoaderOptions

emit

esModule

layer

ReactWebpackPlugin

LAYERS

ReactLoaderOptions

compat

defineDCE

enableRemoveCSSScope

engineVersion

inlineSourcesContent

jsx

refresh

shake

ReactWebpackPlugin

Constructor

apply

defaultOptions

disableCreateSelectorQueryIncompatibleWarning

enableSSR

experimental_isLazyBundle

extractStr

firstScreenSyncTiming

mainThreadChunks

profile

workletRuntimePath

loaders

ReactWebpackPluginOptions

disableCreateSelectorQueryIncompatibleWarning

enableSSR

experimental_isLazyBundle

extractStr

firstScreenSyncTiming

mainThreadChunks

profile

workletRuntimePath

RuntimeWrapperWebpackPlugin

RuntimeWrapperWebpackPlugin

Constructor

apply

defaultOptions

bannerType

experimental_isLazyBundle

injectVars

targetSdkVersion

test

RuntimeWrapperWebpackPluginOptions

bannerType

experimental_isLazyBundle

injectVars

targetSdkVersion

test

TemplateWebpackPlugin

CSS

cssChunksToMap

CSSPlugins

EncodeOptions

(indexer)

compilerOptions

customSections

lepusCode

manifest

LynxEncodePlugin

Constructor

apply

BEFORE_EMIT_STAGE

BEFORE_ENCODE_STAGE

defaultOptions

inlineScripts

ENCODE_STAGE

options

inlineScripts

LynxEncodePluginOptions

inlineScripts

LynxTemplatePlugin

Constructor

apply

convertCSSChunksToMap

defaultOptions

chunks

cssPlugins

customCSSInheritanceList

debugInfoOutside

defaultDisplayLinear

defaultOverflowVisible

dsl

enableA11y

enableAccessibilityElement

enableCSSInheritance

enableCSSInvalidation

enableCSSSelector

enableNewGesture

enableRemoveCSSScope

excludeChunks

experimental_isLazyBundle

filename

intermediate

lazyBundleFilename

removeDescendantSelectorScope

targetSdkVersion

getLynxTemplatePluginHooks

afterEmit

asyncChunkName

beforeEmit

(indexer)

compilerOptions

customSections

lepusCode

manifest

beforeEncode

encode

(indexer)

compilerOptions

customSections

lepusCode

manifest

LynxTemplatePluginOptions

chunks

cssPlugins

customCSSInheritanceList

debugInfoOutside

defaultDisplayLinear

defaultOverflowVisible

dsl

enableA11y

enableAccessibilityElement

enableCSSInheritance

enableCSSInvalidation

enableCSSSelector

enableNewGesture

enableRemoveCSSScope

excludeChunks

experimental_isLazyBundle

filename

intermediate

lazyBundleFilename

removeDescendantSelectorScope

targetSdkVersion

TemplateHooks

afterEmit

asyncChunkName

beforeEmit

(indexer)

compilerOptions

customSections

lepusCode

manifest

beforeEncode

encode

(indexer)

compilerOptions

customSections

lepusCode

manifest

WebEncodePlugin

apply

BEFORE_ENCODE_HOOK_STAGE

deleteDebuggingAssets

ENCODE_HOOK_STAGE

name

ExternalsLoadingWebpackPlugin

ExternalsLoadingPlugin

Constructor

apply

ExternalsLoadingPluginOptions

backgroundLayer

externals

async

background

sectionPath

libraryName

mainThread

sectionPath

timeout

url

mainThreadLayer

ExternalValue

async

background

sectionPath

libraryName

mainThread

sectionPath

timeout

url

LayerOptions

sectionPath

WebpackRuntimeGlobals

RuntimeGlobals

Last Updated:

Edit this page on GitHub
Previous Pagemanifest
Next Pagechunks

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

#LynxTemplatePluginOptions interface

The options for LynxTemplatePlugin

Signature:

export interface LynxTemplatePluginOptions 

#Properties

PropertyModifiersTypeDescription
chunks?'all' | string[](Optional) List all entries which should be injected
cssPluginsCSS.Plugin[]plugins passed to parser
customCSSInheritanceListstring[] | undefinedWhen is enabled, customCSSInheritanceList can control which properties are inheritable, not just the default ones.
debugInfoOutsidebooleandebugInfoOutside controls whether the debug info is placed outside the template.
defaultDisplayLinearbooleandefaultDisplayLinear controls whether the default value of display in CSS is linear.
defaultOverflowVisible?boolean(Optional) When enabled, the default overflow CSS property for views and components will be 'visible'. Otherwise, it will be 'hidden'.
dsl?'tt' | 'react' | 'react_nodiff'(Optional) Declare the current dsl to the encoder.
enableA11ybooleanUse Android View level APIs and system implementations.
enableAccessibilityElementbooleanenableAccessibilityElement set the default value of accessibility-element for all <view /> elements.
enableCSSInheritancebooleanenableCSSInheritance enables the default inheritance properties.
enableCSSInvalidationbooleanCSS Invalidation refers to the process of determining which elements need to have their styles recalculated when the DOM is updated.
enableCSSSelectorbooleanenableCSSSelector controls whether enabling the new CSS implementation.
enableNewGesturebooleanenableNewGesture enables the new gesture system.
enableRemoveCSSScopeboolean

enableRemoveCSSScope controls whether CSS is restrict to use in the component scope.

true: All CSS files are treated as global CSS.

false: All CSS files are treated as scoped CSS, and only take effect in the component that explicitly imports it.

undefined: Only use scoped CSS for CSS Modules, and treat other CSS files as global CSS. Scoped CSS is faster than global CSS, thus you can use CSS Modules to speedy up your CSS if there are performance issues.

excludeChunks?string[](Optional) List all entries which should not be injected
experimental_isLazyBundle?boolean(ALPHA) (Optional) Generate standalone lazy bundle.
filename?string | ((entryName: string) => string)(Optional) The file to write the template to. Supports subdirectories eg: assets/template.js. [name] will be replaced by the entry name. Supports a function to generate the name.
intermediate?string(Optional) The output directory of the intermediate files.
lazyBundleFilename?string(Optional) The filename of the lazy bundle.
removeDescendantSelectorScopebooleanremoveDescendantSelectorScope is used to remove the scope of descendant selectors.
targetSdkVersionstringtargetSdkVersion is used to specify the minimal Lynx Engine version that a App bundle can run on.