My template file is coming from some other projects and I don't know that. I have to add lang property to the template file using htmlwebpack plugin. How can I do the same.
const htmlPlugin = new HtmlWebpackPlugin({
showErrors: true,
minify: false,
hash: true,
path: Config.output,
title: '',
template: Config.htmlEntry,
filename: 'index.html',
});
<html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title></title> <script defer="defer" src="main.js"></script> </head> <body> <section id="index"></section> </body> </html>I want to lang attribute in it through htmlwebpack plugin so that the geneated file have lang attribute like<html lang="en"> </html>