File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ const formatResults = ({ results, thresholds }) => {
101
101
. map ( ( { title, score } ) => `${ title } : ${ score * 100 } ` )
102
102
. join ( ', ' ) ;
103
103
104
- const report = minify ( results . report , {
104
+ const formattedReport = makeReplacements ( results . report ) ;
105
+
106
+ const report = minify ( formattedReport , {
105
107
removeAttributeQuotes : true ,
106
108
collapseWhitespace : true ,
107
109
removeRedundantAttributes : true ,
@@ -272,11 +274,8 @@ module.exports = {
272
274
console . log ( { results : summary } ) ;
273
275
}
274
276
275
- let formattedReport ;
276
277
if ( report ) {
277
- formattedReport = makeReplacements ( report ) ;
278
-
279
- const size = Buffer . byteLength ( JSON . stringify ( formattedReport ) ) ;
278
+ const size = Buffer . byteLength ( JSON . stringify ( report ) ) ;
280
279
console . log (
281
280
`Report collected: audited_uri: '${ chalk . magenta (
282
281
url || path ,
@@ -292,7 +291,7 @@ module.exports = {
292
291
url,
293
292
summary,
294
293
shortSummary,
295
- report : formattedReport ,
294
+ report,
296
295
} ) ;
297
296
}
298
297
}
You can’t perform that action at this time.
0 commit comments