CSSMinifier
Type members
Classlikes
Value members
Concrete methods
Assume s is a complete css content or valid css content just after comment
block; This function removes comments except ones starting with !
,
preserve comments starts with !
, string literals and the fisrt charset.
Assume s is a complete css content or valid css content just after comment
block; This function removes comments except ones starting with !
,
preserve comments starts with !
, string literals and the fisrt charset.
- Returns:
(text without comments and strings to be removed,comments to be preserved,strings to be preserved,charset)
remove redundant leading and trailing whitespace-like chars, repeated
semi-colons, repeated 0s(like margin: 0 0 0 0
) and empty rules
remove redundant leading and trailing whitespace-like chars, repeated
semi-colons, repeated 0s(like margin: 0 0 0 0
) and empty rules
Leave data urls alone to increase parse performance.
Leave data urls alone to increase parse performance.