Methods
-
generateCSSPatch(original, expected) → {string}
-
Generate CSS difference patch between two CSS stylesheets.
Parameters:
Name Type Description original
string Original CSS stylesheet.
expected
string Desired CSS stylesheet.
Returns:
string -CSS patch difference.
-
transformCSS(css, transformer) → {string}
-
Apply transformations to CSS AST. Transformer function can ether return AST or falsy value (if transformations was applied to the original AST).
Parameters:
Name Type Description css
string Stylesheet to transform.
transformer
function Transformer function.
Returns:
string -Transformed stylesheet.