Brunch plugin that adds HTMLMinifier support to compile, reload-on-save, validate, and minify HTML templates outside the assets directory. Version 2.8.0 integrates with html-minifier and allows folders-by-feature architecture. The plugin provides default production-ready optimization and configurable minification options. Differs from other Brunch HTML plugins by supporting front matter minification, customizable destination paths, and compile assets feature.
npm install html-pages-brunchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install and configure html-pages-brunch with basic minification options in a Brunch project.
Set `optimize: true` in config if minification is needed in dev.
Check html-minifier docs for up-to-date options.
Set `forceRemoveFrontMatter: false` to prevent removal when disabled.
Run `npm install --save-dev html-minifier`.
Ensure `destination` is a function returning a string (e.g., `(path) => path.replace(/pattern/, 'replacement')`).
Run `npm install --save-dev html-pages-brunch` and add `plugins.htmlPages` config.