Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
critical_css
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
critical_css
Merge requests
!13
Issue
#3524861
by jwilson3: Improve debug output readability
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3524861
by jwilson3: Improve debug output readability
issue/critical_css-3524861:3524861-debug-readability
into
2.0.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
James Wilson
requested to merge
issue/critical_css-3524861:3524861-debug-readability
into
2.0.x
1 month ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3524861
- Improve debug output readability, following Core's Twig debug style from
#3420709
0
0
Merge request reports
Compare
2.0.x
2.0.x (HEAD)
and
latest version
latest version
b457222d
1 commit,
1 month ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Asset/CssCollectionRenderer.php
+
3
−
3
Options
@@ -202,13 +202,13 @@ class CssCollectionRenderer implements AssetCollectionRendererInterface {
$debugInfoStart
=
"
\n
/* CRITICAL CSS DEBUG */
\n
"
;
$debugInfoStart
.
=
"/* FILE NAME SUGGESTIONS:
\n
"
;
foreach
(
$filePaths
as
$filePath
)
{
$flag
=
(
$filePath
===
$matchedFilePath
)
?
'
x
'
:
'
*
'
;
$debugInfoStart
.
=
"
\t
$flag
$filePath
\n
"
;
$flag
=
(
$filePath
===
$matchedFilePath
)
?
'
✅
'
:
'
▪️
'
;
$debugInfoStart
.
=
"
$flag
$filePath
\n
"
;
}
$debugInfoStart
.
=
"*/
\n
"
;
if
(
$matchedFilePath
)
{
$debugInfoStart
.
=
'/* BEGIN OUTPUT from '
.
Html
::
escape
(
$matchedFilePath
)
.
" */
\n
"
;
$debugInfoStart
.
=
'/*
💡
BEGIN OUTPUT from '
.
Html
::
escape
(
$matchedFilePath
)
.
" */
\n
"
;
$debugInfoEnd
=
"
\n
/* END OUTPUT from "
.
Html
::
escape
(
$matchedFilePath
)
.
" */
\n
"
;
}
else
{
Loading