From 084dc393110856fcffd29f7f7d77d957a55ce3c3 Mon Sep 17 00:00:00 2001 From: alexander-akait Date: Tue, 29 Jul 2025 15:54:09 +0300 Subject: [PATCH] test: issue 1873 --- spec/basic.spec.js | 28 ++++++++++++++++++++++++++++ spec/fixtures/template.ejs | 13 +++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 spec/fixtures/template.ejs diff --git a/spec/basic.spec.js b/spec/basic.spec.js index b2685667..afcf3614 100644 --- a/spec/basic.spec.js +++ b/spec/basic.spec.js @@ -3798,4 +3798,32 @@ describe("HtmlWebpackPlugin", () => { done, ); }); + + it("allow you to use custom HTML tag attributes in templates", (done) => { + testHtmlPlugin( + { + mode: "production", + entry: path.join(__dirname, "fixtures/index.js"), + output: { + path: OUTPUT_DIR, + filename: "index_bundle.js", + }, + plugins: [ + new HtmlWebpackPlugin({ + template: path.join(__dirname, "fixtures/template.ejs"), + baseHref: "/", + minify: false, + appMountIds: ["react-app", "portal-root"], + favicon: path.join(__dirname, "fixtures/favicon.ico"), + inject: false, + }), + ], + }, + [ + / + <% } %> + +