Webpack plugin that inlines specific chunks (like the webpack runtime manifest) directly into HTML files via HtmlWebpackPlugin, eliminating extra HTTP requests. Version 1.1.1 is the latest stable release, with no active development in recent years. It requires HtmlWebpackPlugin v2.10.0 or higher and supports webpack up to version 4 (CommonsChunkPlugin era). Unlike newer alternatives (e.g., InlineChunkHtmlPlugin for webpack 5), this plugin uses the older HtmlWebpackPlugin API and does not support webpack 5's default runtime chunking.
npm install html-webpack-inline-chunk-pluginVerified import paths — ran on the pinned version, not inferred.
Demonstrates inlining webpack runtime chunk (manifest) into HTML using CommonsChunkPlugin.
Use InlineChunkHtmlPlugin from 'react-dev-utils' or html-webpack-plugin's 'inject' option instead.
Migrate to webpack 4's splitChunks and use this plugin only for webpack 4 projects with CommonsChunkPlugin.
Check your webpack configuration for the actual chunk name (e.g., 'manifest', 'runtime').
Ensure HtmlWebpackPlugin is included in plugins array before this plugin, and use HtmlWebpackPlugin 2.10+.
Install and add HtmlWebpackPlugin to your webpack plugins array before InlineChunkWebpackPlugin.
Run 'npm install html-webpack-plugin --save-dev'.
Use 'const InlineChunkWebpackPlugin = require("html-webpack-inline-chunk-plugin");' — do not import from default.