Optional
base: MiniCSSJSONOutputI | MiniCSSPrivate
Readonly
#classesCSS class map.
Private
Readonly
#idsCSS id map.
Private
Readonly
#keyframesCSS keyframes map.
Private
Readonly
#variablesCSS variable map.
Add a new attribute selection condition to be applied to classes/ids being renamed from this point on.
miniCSS = miniCSS.addAttributeSelector({
attribute : ATTRIBUTE.CLASS,
operator : OPERATOR.EXACT_OR_BEGIN_WITH_HYPHEN,
value : "col",
caseSensitivity: CASE_SENSITIVITY.SENSITIVE,
});
Maps the given attribute to an already generated one or generate a new one.
const { operator, value } = node.attributeSelector({
attribute : ATTRIBUTE.CLASS,
operator : OPERATOR.EXACT_OR_BEGIN_WITH_HYPHEN,
value : "col",
caseSensitivity: CASE_SENSITIVITY.SENSITIVE,
});
Converts the current miniCSS instance to a JSON compatible object.
const obj = miniCSS.toJSON();
const obj = JSON.stringify(miniCSS);
Static
fromJSONCreates a new MiniCSS instance from the JSON output.
const miniCSS = MiniCSS.fromJSON(obj);
Generated using TypeDoc
New MiniCSS instance.
Example
Example
Example