How do I add certain script tags inside <head> and <body> tags when using HtmlWebackPlugin
问题 I'm using HtmlWebpackPlugin to generate HTML files with javascript. Now I would like to add custom script at different parts of <head> and <body> tags Example: How do I, Add <script> alert('in head tag') </script> inside the <head> tag as the first child Add <script> alert('in body tag') </script> inside the <body> tag as the first child Here is the snippet in my Webpack config new HtmlWebpackPlugin({ hash: true, chunks: ["app"], filename: path.resolve(__dirname, "./public/pages/app.html"),