Closed megFree closed 2 years ago
Plugin option title doesn't insert new title for output html template.
title
Plugin adds provided title tag into resulting html file.
Github repo
npm install
npm start
Node.js v16.6.2 win32 10.0.19043 npm 7.20.3
npm ls webpack
code@1.0.0 C:\my_projects\webpack-demo-app +-- css-loader@6.7.1 | `-- webpack@5.74.0 deduped +-- html-webpack-plugin@5.5.0 | `-- webpack@5.74.0 deduped +-- sass-loader@13.1.0 | `-- webpack@5.74.0 deduped +-- style-loader@3.3.1 | `-- webpack@5.74.0 deduped +-- webpack-cli@4.10.0 | +-- @webpack-cli/configtest@1.2.0 | | `-- webpack@5.74.0 deduped | `-- webpack@5.74.0 deduped `-- webpack@5.74.0 `-- terser-webpack-plugin@5.3.6 `-- webpack@5.74.0 deduped
npm ls html-webpack-plugin
code@1.0.0 C:\my_projects\webpack-demo-app `-- html-webpack-plugin@5.5.0
I believe you're missing this bit in your html file <title><%= htmlWebpackPlugin.options.title %></title> as stated in writing-your-own-templates
<title><%= htmlWebpackPlugin.options.title %></title>
Current behaviour 💣
Plugin option
title
doesn't insert new title for output html template.Expected behaviour ☀️
Plugin adds provided title tag into resulting html file.
Reproduction Example 👾
Github repo
npm install
npm start
Environment 🖥
npm ls webpack
npm ls html-webpack-plugin