A webpack plugin that inlines specified chunks (e.g., manifest.js, CSS) directly into HTML generated by HtmlWebpackPlugin, reducing HTTP requests. Version 1.3.1 is the latest, with no recent updates; supports webpack 4. Requires HtmlWebpackPlugin v2.10+. Key differentiator: simple configuration for inlining chunks and optionally deleting source files. Does not support webpack 5, which limits adoption compared to alternatives like html-webpack-inline-source-plugin.
npm install inline-chunks-html-webpack-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows a minimal webpack 4 config that inlines the 'runtime' chunk into index.html using InlineChunksWebpackPlugin.
Use a webpack 5 compatible plugin like html-webpack-inline-source-plugin or upgrade your webpack config.
Ensure HtmlWebpackPlugin version is at least 2.10.0.
Explicitly set 'deleteFile: true' to remove inlined files, or use CleanWebpackPlugin.
Limit inlineChunks to small runtime/manifest chunks to avoid performance issues.
Use a webpack 5 compatible alternative or downgrade to webpack 4.
Install HtmlWebpackPlugin >=2.10.0: npm install html-webpack-plugin@3 --save-dev
Run 'npm install inline-chunks-html-webpack-plugin --save-dev' and use require('inline-chunks-html-webpack-plugin').