A Webpack plugin to replace content blocks in HTML files using comment markers. Version 0.1.2 is the latest stable release, with no further updates since 2017. It allows replacing named blocks (`<!-- replace:name --> ... <!-- endreplace -->`) with provided strings, and also supports replacing a placeholder with the Webpack entry hash. Intended for simple HTML injection during builds, but it is a very old plugin with known limitations: it does not support Webpack 4+ or async operations, and the GitHub repository is archived. For modern projects, consider `html-webpack-plugin` with its template features instead.
npm install replace-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Configures ReplacePlugin in a Webpack 3 build to replace CSS and JS blocks in index.html and substitute [hash] placeholder.
Migrate to html-webpack-plugin with custom templates or use a modern replacement like @dexbyte/replace-webpack-plugin.
Use Boolean check: skip: process.env.NODE_ENV === 'development'.
Ensure the entry file path is correct relative to the webpack context.
Run: npm install replace-webpack-plugin --save-dev
Use: const ReplacePlugin = require('replace-webpack-plugin'); new ReplacePlugin({...})Downgrade to webpack 3 or upgrade to a compatible replacement.
No dependency data recorded yet.