Validate html files with html-validate only static html files.
npm i -D https://github.com/alte0/webpack-html-validate-plugin
Use plugin:
const WebpackHtmlValidatePlugin = require('webpack-html-validate')
plugins: [
new WebpackHtmlValidatePlugin()
]Create .htmlvalidate.json:
{
"extends": [
"html-validate:recommended"
]
}####Look more - gitlab html-validate