'How to add lang attribute to <html> using htmlwebpack plugin

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',
            
        });


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source