vue-lynx/plugin / PluginVueLynxOptions
#Interface: PluginVueLynxOptions
Options for pluginVueLynx.
#Properties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
optionsApi? | boolean | true | Whether to enable Vue's Options API support. Disabling it reduces bundle size. | index.ts:51 |
prodDevtools? | boolean | false | Whether to enable Vue devtools in production builds. | index.ts:57 |
enableCSSSelector? | boolean | true | Whether to enable CSS selector support in the Lynx template. When enabled, CSS from Vue <style> blocks and imported CSS files will be compiled into the Lynx bundle and applied via class selectors. | index.ts:65 |
enableCSSInheritance? | boolean | false | Whether to enable CSS inheritance in the Lynx engine. When enabled, computed CSS property values cascade from parent elements to children (e.g. color, font-size), matching standard CSS behavior. Note: CSS custom property (variable) inheritance via this flag does not propagate --* values into {{--varName}} class rule resolution in the Lynx engine. v-bind() in <style> blocks works without this flag — useCssVars stamps CSS vars directly on every element instead of relying on inheritance. | index.ts:79 |
customCSSInheritanceList? | string[] | undefined | A list of additional CSS properties to inherit beyond the engine defaults. Only effective when enableCSSInheritance is true. | index.ts:86 |
enableCSSInlineVariables? | boolean | false | Whether to enable CSS custom properties (variables) in inline styles. When enabled, setting --* properties via :style bindings will be recognized by the Lynx engine at runtime. | index.ts:94 |
debugInfoOutside? | boolean | true | Whether to place debug info outside the template bundle. Reduces template size in dev builds. | index.ts:101 |
autoPixelUnit? | boolean | true | Whether to automatically append 'px' to numeric style values (e.g. fontSize: 24 → '24px'). Dimensionless properties like flex, opacity, and zIndex are never converted. This convenience behavior is deprecated and will default to false in the next major version. Prefer explicit string units (e.g. fontSize: '24px'). Deprecated Will default to false in the next major version. | index.ts:115 |