We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50af0fb commit b840959Copy full SHA for b840959
tools/eleventy/transforms.js
@@ -5,7 +5,7 @@ const env = process.env.ELEVENTY_ENV;
5
// HTML minifier transform
6
// Also minifies JS and CSS
7
// TODO Check continueOnParseError option and how to handle failure in CI
8
-function htmlmin(content, outputPath) {
+async function htmlmin(content, outputPath) {
9
if (!outputPath.endsWith('.html')) {
10
return content;
11
}
@@ -14,7 +14,7 @@ function htmlmin(content, outputPath) {
14
15
16
17
- const prettified = prettier.format(content, {parser: 'html'});
+ const prettified = await prettier.format(content, {parser: 'html'});
18
19
const minified = htmlminifier.minify(prettified, {
20
keepClosingSlash: true,
0 commit comments