A Webpack plugin that removes whitespace and comments from HTML files, specifically designed for Velocity template files where html-minifier fails. It strips HTML comments, inline JS/CSS comments, and replaces multiple spaces with single spaces. Version 0.0.3 is the current stable release, with no recent updates. It integrates with html-webpack-plugin and offers optional exclude/include patterns via regex.
npm install html-remove-whitespace-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to add HtmlRemoveWhitespacePlugin to a Webpack config with html-webpack-plugin.
Ensure no HTML-like comments exist in inline scripts, or use exclude option.
Use require() instead of import.
Run npm install html-remove-whitespace-plugin --save-dev
Use const HtmlRemoveWhitespacePlugin = require('html-remove-whitespace-plugin');No dependency data recorded yet.