vue-lynx/plugin / PluginVueLynxOptions

Interface: PluginVueLynxOptions

Options for pluginVueLynx.

Properties

PropertyTypeDefault valueDescriptionDefined in
optionsApi?booleantrueWhether to enable Vue's Options API support. Disabling it reduces bundle size.index.ts:51
prodDevtools?booleanfalseWhether to enable Vue devtools in production builds.index.ts:57
enableCSSSelector?booleantrueWhether 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?booleanfalseWhether 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[]undefinedA list of additional CSS properties to inherit beyond the engine defaults. Only effective when enableCSSInheritance is true.index.ts:86
enableCSSInlineVariables?booleanfalseWhether 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?booleantrueWhether to place debug info outside the template bundle. Reduces template size in dev builds.index.ts:101
autoPixelUnit?booleantrueWhether 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