PHP-CSS-Parser icon indicating copy to clipboard operation
PHP-CSS-Parser copied to clipboard

factory method for minification format

Open Langmans opened this issue 8 years ago • 2 comments

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;

Langmans avatar May 20 '16 08:05 Langmans

Isn’t that essentially what OutputFormat::createCompact() does?

sabberworm avatar May 29 '16 09:05 sabberworm

Yeah, though it could be more compact. From looking at OutputFormatTest, setSemicolonAfterLastRule(false) works, but isn't used by compact.

Krinkle avatar Jul 15 '16 15:07 Krinkle