UNPKG

@alloc/html-bundle

Version:

Bundle your HTML assets with Esbuild and LightningCSS. Custom plugins, HMR platform, and more.

24 lines (23 loc) 864 B
/// <reference types="node" /> import { Attribute, Node } from '@web/parse5-utils'; import * as lightningCss from 'lightningcss'; import { Config } from '../config.mjs'; export declare function buildCSSFile(file: string, config: Config, flags?: { watch?: boolean; }): Promise<{ outFile: string; code: Buffer; map: void | Buffer; exports: void | lightningCss.CSSModuleExports; references: lightningCss.CSSModuleReferences; dependencies: void | lightningCss.Dependency[]; warnings: lightningCss.Warning[]; }>; export interface RelativeStyle { readonly srcAttr: Attribute; readonly srcPath: string; } export declare function findRelativeStyles(document: Node, file: string): RelativeStyle[]; export declare function buildRelativeStyles(styles: RelativeStyle[], config: Config, flags?: { watch?: boolean; }): Promise<void>;