File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const {marked} = require("marked")
9
9
const rimraf = promisify ( require ( "rimraf" ) )
10
10
const { execFileSync} = require ( "child_process" )
11
11
const escapeRegExp = require ( "escape-string-regexp" )
12
- const HTMLMinifier = require ( "html-minifier" )
12
+ const HTMLMinifier = require ( "html-minifier-terser " )
13
13
const upstream = require ( "./_upstream" )
14
14
const version = require ( "../package.json" ) . version
15
15
@@ -227,7 +227,7 @@ class Generator {
227
227
else {
228
228
let html = await fs . readFile ( file , "utf-8" )
229
229
if ( file . endsWith ( ".md" ) ) html = await this . compilePage ( file , html )
230
- const minified = HTMLMinifier . minify ( html , htmlMinifierConfig )
230
+ const minified = await HTMLMinifier . minify ( html , htmlMinifierConfig )
231
231
await archived (
232
232
relative . replace ( / \. m d $ / , ".html" ) ,
233
233
( dest ) => fs . writeFile ( dest , minified )
You can’t perform that action at this time.
0 commit comments