@node-minify/html-minifier
Advanced tools
Comparing version 7.0.0 to 7.1.0
"use strict"; | ||
var _htmlMinifier = _interopRequireDefault(require("html-minifier")); | ||
var _utils = require("@node-minify/utils"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/*! | ||
@@ -40,2 +37,3 @@ * node-minify | ||
}; | ||
/** | ||
@@ -48,3 +46,2 @@ * Run html-minifier. | ||
*/ | ||
const minifyHTMLMinifier = ({ | ||
@@ -58,3 +55,2 @@ settings, | ||
const contentMinified = HTMLMinifier(content, options); | ||
if (!settings.content) { | ||
@@ -67,14 +63,11 @@ _utils.utils.writeFile({ | ||
} | ||
if (callback) { | ||
return callback(null, contentMinified); | ||
} | ||
return contentMinified; | ||
}; | ||
/** | ||
* Expose `minifyHTMLMinifier()`. | ||
*/ | ||
module.exports = minifyHTMLMinifier; |
{ | ||
"name": "@node-minify/html-minifier", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"description": "html-minifier plugin for @node-minify", | ||
@@ -36,6 +36,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@node-minify/utils": "^7.0.0", | ||
"@node-minify/utils": "^7.1.0", | ||
"html-minifier": "4.0.0" | ||
}, | ||
"gitHead": "8b5bda6f1ac9fe7180006f2a19ec3253e8fff4ec" | ||
"gitHead": "94cef2d5d653c3bddc3e603b4e25c135b0b6f4b3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5026
Updated@node-minify/utils@^7.1.0