File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export default {
8989 ) ;
9090
9191 // We minify the html result to reduce the file size and keep it "clean"
92- const minified = await minify ( result ) ;
92+ const { code : minified } = await minify ( result ) ;
9393
9494 if ( output ) {
9595 await writeFile ( join ( output , 'all.html' ) , minified ) ;
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ export default {
159159 for ( const template of chunkResult ) {
160160 const result = replaceTemplateValues ( apiTemplate , template , releases ) ;
161161
162- const minified = await minify ( result ) ;
162+ const { code : minified } = await minify ( result ) ;
163163
164164 await writeFile ( join ( output , `${ template . api } .html` ) , minified ) ;
165165 }
Original file line number Diff line number Diff line change @@ -121,9 +121,9 @@ export async function processJSXEntries(
121121 . replace ( '{{speculationRules}}' , SPECULATION_RULES ) ;
122122
123123 // Minify HTML (input must be a Buffer)
124- const finalHTMLBuffer = minifySync ( renderedHtml ) ;
124+ const { code : html } = minifySync ( renderedHtml ) ;
125125
126- return { html : finalHTMLBuffer , api } ;
126+ return { html, api } ;
127127 } ) ;
128128
129129 const { code : minifiedCSS } = transform ( {
You can’t perform that action at this time.
0 commit comments