|
@@ 473-478 (lines=6) @@
|
| 470 |
|
|
| 471 |
|
// ! in the first position of the comment means preserve |
| 472 |
|
// so push to the preserved tokens keeping the ! |
| 473 |
|
if ($this->keepImportantComments && strpos($comment, '!') === 0) { |
| 474 |
|
$preservedTokenId = $this->registerPreservedToken($comment); |
| 475 |
|
// Put new lines before and after /*! important comments |
| 476 |
|
$css = str_replace($commentIdString, "\n/*$preservedTokenId*/\n", $css); |
| 477 |
|
continue; |
| 478 |
|
} |
| 479 |
|
|
| 480 |
|
// # sourceMappingURL= in the first position of the comment means sourcemap |
| 481 |
|
// so push to the preserved tokens if {$this->keepSourceMapComment} is truthy. |
|
@@ 482-487 (lines=6) @@
|
| 479 |
|
|
| 480 |
|
// # sourceMappingURL= in the first position of the comment means sourcemap |
| 481 |
|
// so push to the preserved tokens if {$this->keepSourceMapComment} is truthy. |
| 482 |
|
if ($this->keepSourceMapComment && strpos($comment, '# sourceMappingURL=') === 0) { |
| 483 |
|
$preservedTokenId = $this->registerPreservedToken($comment); |
| 484 |
|
// Add new line before the sourcemap comment |
| 485 |
|
$css = str_replace($commentIdString, "\n/*$preservedTokenId*/", $css); |
| 486 |
|
continue; |
| 487 |
|
} |
| 488 |
|
|
| 489 |
|
// Keep empty comments after child selectors (IE7 hack) |
| 490 |
|
// e.g. html >/**/ body |