|
@@ 487-492 (lines=6) @@
|
| 484 |
|
|
| 485 |
|
// ! in the first position of the comment means preserve |
| 486 |
|
// so push to the preserved tokens keeping the ! |
| 487 |
|
if ($this->keepImportantComments && strpos($comment, '!') === 0) { |
| 488 |
|
$preservedTokenId = $this->registerPreservedToken($comment); |
| 489 |
|
// Put new lines before and after /*! important comments |
| 490 |
|
$css = str_replace($commentIdString, "\n/*$preservedTokenId*/\n", $css); |
| 491 |
|
continue; |
| 492 |
|
} |
| 493 |
|
|
| 494 |
|
// # sourceMappingURL= in the first position of the comment means sourcemap |
| 495 |
|
// so push to the preserved tokens if {$this->keepSourceMapComment} is truthy. |
|
@@ 496-501 (lines=6) @@
|
| 493 |
|
|
| 494 |
|
// # sourceMappingURL= in the first position of the comment means sourcemap |
| 495 |
|
// so push to the preserved tokens if {$this->keepSourceMapComment} is truthy. |
| 496 |
|
if ($this->keepSourceMapComment && strpos($comment, '# sourceMappingURL=') === 0) { |
| 497 |
|
$preservedTokenId = $this->registerPreservedToken($comment); |
| 498 |
|
// Add new line before the sourcemap comment |
| 499 |
|
$css = str_replace($commentIdString, "\n/*$preservedTokenId*/", $css); |
| 500 |
|
continue; |
| 501 |
|
} |
| 502 |
|
|
| 503 |
|
// Keep empty comments after child selectors (IE7 hack) |
| 504 |
|
// e.g. html >/**/ body |