A webpack plugin to embed CSS/JS resources inline into HTML output using inline-source, requiring html-webpack-plugin. Version 3.0.1 supports webpack 5 and Node >=16. Minimal configuration needed; supports compression, custom root paths, and regex-based asset matching. Differentiators: tight integration with html-webpack-plugin, support for inline-asset attributes, and no-asset-match handling.
npm install inline-source-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Minimal webpack config with HtmlWebpackPlugin and InlineSourceWebpackPlugin, enabling compression and warning on unmatched assets.
Upgrade Node.js to v16 or later.
Upgrade webpack to v5 or use v1.x with webpack 4.
Use 'inline-asset' instead of 'inline-bundle' in HTML attributes.
Ignore warnings in dev mode or set noAssetMatch to 'none' to suppress.
Remove src/href and rely solely on inline-asset attribute for webpack-generated assets.
Use: import InlineSourceWebpackPlugin from 'inline-source-webpack-plugin';
Install: npm install html-webpack-plugin --save-dev
If using ESM, use default import: import InlineSourceWebpackPlugin from 'inline-source-webpack-plugin';