You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add functionality to this plugin to have it automatically inject the manifest <script> tag into the HTML being generated?
I just wrote this plugin to inject it in my build, but it would be cool if something similar could be rolled into this plugin:
/** * Inject a <script> tag containing the Webpack manifest prior to HtmlPlugin * injecting tags for generated assets. */functioninjectManifest(){this.plugin('compilation',(compilation)=>{compilation.plugin('html-webpack-plugin-before-html-processing',(htmlPluginData,cb)=>{let{assets, html}=htmlPluginDatahtmlPluginData.html=html.replace('</body>',`${assets.webpackManifest}</body>`)cb()})})}
The text was updated successfully, but these errors were encountered:
Would it be possible to add functionality to this plugin to have it automatically inject the manifest
<script>
tag into the HTML being generated?I just wrote this plugin to inject it in my build, but it would be cool if something similar could be rolled into this plugin:
The text was updated successfully, but these errors were encountered: