Package APIs
@master/css-vite
Vite plugin for Master CSS
Public entrypoints
Register Master CSS in Vite to compile project styles and coordinate the selected rendering mode. The default export and createMasterCSSVitePlugin are the same factory.
Declarations show the public surface of each import path. Referenced type names may be local to the package; import only names listed as exports here. Private implementation is omitted, while constructor restrictions remain visible.
@master/css-vite
Vite plugin factory and options.
createMasterCSSVitePlugin
export declare function createMasterCSSVitePlugin( specifiedOptions?: MasterCSSVitePluginOptions): Plugin[];default
Default export of createMasterCSSVitePlugin.
export { createMasterCSSVitePlugin as default };MasterCSSVitePluginOptions
export interface MasterCSSVitePluginOptions { enabled?: boolean; mode?: MasterCSSRenderingMode; pruneNativeCSS?: boolean; scanner?: MasterCSSScannerConfiguration; runtime?: boolean | MasterCSSIntegrationRuntimeOptions;}Using this contract
Call the factory in Vite configuration and let Vite own the returned plugin lifecycle. See Vite installation for the stylesheet entry and rendering-mode setup.