A webpack plugin that inlines the runtime manifest chunk as an inline script tag in the HTML, eliminating an extra HTTP request. Current stable version is 4.0.1, maintained infrequently. It requires HtmlWebpackPlugin (v2.10+). Unlike alternatives that extract the manifest to a file, this plugin embeds the runtime JavaScript directly into the HTML generated by HtmlWebpackPlugin. It is only intended for webpack 4 and above (v4 drops support for webpack 3). The plugin is lightweight with no extra runtime dependencies, but its feature set is minimal and may not be actively developed.
npm install webpack-inline-manifest-pluginVerified import paths — ran on the pinned version, not inferred.
Basic setup to inline the webpack runtime manifest into the HTML via HtmlWebpackPlugin and CommonsChunkPlugin for webpack 4.
Upgrade to webpack 4+ or pin to webpack-inline-manifest-plugin@3.x.
Consider migrating to webpack 5 and using an alternative like inline-chunk-html-webpack-plugin.
Use any other name, e.g., 'webpackManifest' as shown in the docs.
Ensure a chunk named 'manifest' (or the name you want to inline) is split out in the webpack config.
Run `npm install webpack-inline-manifest-plugin --save-dev` and use `require('webpack-inline-manifest-plugin')`.Use `const WebpackInlineManifestPlugin = require('webpack-inline-manifest-plugin');` or if in ESM: `const { default: WebpackInlineManifestPlugin } = await import(...)`.Add `new webpack.optimize.CommonsChunkPlugin({ name: 'manifest' })` and ensure the option name passed to the plugin matches the key used in template.