Skip to content

Function: projectCss()

ts
function projectCss(source, opts?): string;

Defined in: packages/embedded/src/index.ts:240

Project a host source down to a CSS string: same length and line structure, with embedded-CSS regions and outer /** … */ doc comments kept in place, everything else blanked, and JS ${…} interpolations masked. The result feeds any CSS tool with source-accurate positions.

Parameters

source

string

opts?

EmbeddedOptions = {}

Returns

string

Released under the MIT License