Skip to content

Commit

Permalink
[chore] upgrades [email protected] -> 6.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcsapo authored and jantimon committed Oct 15, 2021
1 parent 2f5de7a commit d62a10f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1041,12 +1041,12 @@ function hookIntoCompiler (compiler, options, plugin) {
*
* @param {string} html
*/
function minifyHtml (html) {
async function minifyHtml (html) {
if (typeof options.minify !== 'object') {
return html;
}
try {
return require('html-minifier-terser').minify(html, options.minify);
return await require('html-minifier-terser').minify(html, options.minify);
} catch (e) {
const isParseError = String(e.message).indexOf('Parse Error') === 0;
if (isParseError) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"webpack-recompilation-simulator": "3.2.0"
},
"dependencies": {
"@types/html-minifier-terser": "^5.0.0",
"html-minifier-terser": "^5.0.1",
"@types/html-minifier-terser": "^6.0.0",
"html-minifier-terser": "^6.0.2",
"lodash": "^4.17.21",
"pretty-error": "^3.0.4",
"tapable": "^2.0.0"
Expand Down

0 comments on commit d62a10f

Please sign in to comment.