Closed sjinks closed 3 years ago
Currently the plugin does not honor "XHTML mode": for example, if we have a configuration like this:
new HtmlWebpackPlugin({ filename: 'index.html', template: './src/index.html', xhtml: true, })
the plugin will still output html-style tags (e.g., <meta charset="utf-8"> instead of <meta charset="utf-8"/>).
<meta charset="utf-8">
<meta charset="utf-8"/>
x
[ ]
Filling out the following details about bugs will help us solve your issue sooner.
slackhq/csp-html-webpack-plugin version: 4.0.0
node version: 12.17.0
OS version(s): any
See above - create a Webpack config with xhtml: true set for html-webpack-plugin
xhtml: true
html-webpack-plugin
The generated HTML should have self-closing tags where appropriate, like
The generated markup does not honor xhtml: true:
Fixed in https://github.com/slackhq/csp-html-webpack-plugin/pull/75
Description
Currently the plugin does not honor "XHTML mode": for example, if we have a configuration like this:
the plugin will still output html-style tags (e.g.,
<meta charset="utf-8">
instead of<meta charset="utf-8"/>
).What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
slackhq/csp-html-webpack-plugin version: 4.0.0
node version: 12.17.0
OS version(s): any
Steps to reproduce:
See above - create a Webpack config with
xhtml: true
set forhtml-webpack-plugin
Expected result:
The generated HTML should have self-closing tags where appropriate, like
Actual result:
The generated markup does not honor
xhtml: true
: