html-webpack-plugin 5.6.3 → 5.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +6 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1307,7 +1307,9 @@ class HtmlWebpackPlugin {
|
|
|
1307
1307
|
|
|
1308
1308
|
if ("error" in templateResult) {
|
|
1309
1309
|
compilation.errors.push(
|
|
1310
|
-
|
|
1310
|
+
new Error(
|
|
1311
|
+
prettyError(templateResult.error, compiler.context).toString(),
|
|
1312
|
+
),
|
|
1311
1313
|
);
|
|
1312
1314
|
}
|
|
1313
1315
|
|
|
@@ -1497,7 +1499,9 @@ class HtmlWebpackPlugin {
|
|
|
1497
1499
|
.catch((err) => {
|
|
1498
1500
|
// In case anything went wrong the promise is resolved
|
|
1499
1501
|
// with the error message and an error is logged
|
|
1500
|
-
compilation.errors.push(
|
|
1502
|
+
compilation.errors.push(
|
|
1503
|
+
new Error(prettyError(err, compiler.context).toString()),
|
|
1504
|
+
);
|
|
1501
1505
|
return this.options.showErrors
|
|
1502
1506
|
? prettyError(err, compiler.context).toHtml()
|
|
1503
1507
|
: "ERROR";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-webpack-plugin",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Simplifies creation of HTML files to serve your webpack bundles",
|
|
6
6
|
"author": "Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"standard-version": "^9.3.0",
|
|
59
59
|
"style-loader": "2.0.0",
|
|
60
60
|
"typescript": "4.9.4",
|
|
61
|
-
"webpack": "^5.
|
|
61
|
+
"webpack": "^5.101.0",
|
|
62
62
|
"webpack-cli": "4.5.0",
|
|
63
63
|
"webpack-recompilation-simulator": "3.2.0"
|
|
64
64
|
},
|