You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$process->on('capture_phase0', function (\CssCrush\Process$process)
{
$process->input->string = preg_replace('/^\s*\/\/.*/m', '', $process->input->string);
$importer = new \CssCrush\Importer($process);
$process->string = new \CssCrush\StringObject($importer->collate());
});
We're probably just going to pre-process the template before passing it to crush. Though this highlights that perhaps an event that allows you to modify the input could be useful for others.
This isn't a dealbreaker, but thought I'd ask the question.
With Less, this would be output as:
It looks like we can use the
declaration_preprocess
event to strip out properties that start with//
.Are there any events that would enable us to strip out the others, or convert them to CSS comments?
The text was updated successfully, but these errors were encountered: