Skip to content

Commit 13406cb

Browse files
committed
chore: minified result
1 parent 3f6552f commit 13406cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/generators/legacy-html-all/index.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ export default {
8888
{ skipGitHub: true, skipGtocPicker: true }
8989
);
9090

91-
if (output) {
92-
// We minify the html result to reduce the file size and keep it "clean"
93-
const minified = HTMLMinifier.minify(Buffer.from(result), {});
91+
// We minify the html result to reduce the file size and keep it "clean"
92+
const minified = HTMLMinifier.minify(Buffer.from(result), {});
9493

94+
if (output) {
9595
await writeFile(join(output, 'all.html'), minified);
9696
}
9797

98-
return result;
98+
return minified;
9999
},
100100
};

0 commit comments

Comments
 (0)