PHP-CSS-Parser
PHP-CSS-Parser copied to clipboard
factory method for minification format
Maybe you can create a format for minification :) I'm using the following:
$format = new OutputFormat();
$format->sSpaceAfterRuleName =
$format->sSpaceBetweenBlocks =
$format->sSpaceAfterSelectorSeparator =
$format->sSpaceBeforeOpeningBrace =
$format->bSemicolonAfterLastRule =
$format->sIndentation = null;
Isn’t that essentially what OutputFormat::createCompact()
does?
Yeah, though it could be more compact. From looking at OutputFormatTest, setSemicolonAfterLastRule(false)
works, but isn't used by compact.