Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Nicklas <[email protected]>
  • Loading branch information
gabrielcsapo and jantimon committed Oct 15, 2021
1 parent f08bd02 commit e38ac97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ function hookIntoCompiler (compiler, options, plugin) {
return html;
}
try {
return await require('html-minifier-terser').minify(html, options.minify);
return require('html-minifier-terser').minify(html, options.minify);
} catch (e) {
const isParseError = String(e.message).indexOf('Parse Error') === 0;
if (isParseError) {
Expand Down

0 comments on commit e38ac97

Please sign in to comment.