Laravel Elixir extension for minifying Blade-generated HTML and static HTML files using gulp-htmlmin (which uses html-minifier). Version 1.0.5 is the latest stable release; the package has seen no updates since 2020 and is effectively in maintenance mode. Key differentiator: integrates directly with Laravel Elixir's build pipeline, allowing minification of views without separate gulp tasks. Note that Laravel Elixir itself has been superseded by Laravel Mix.
npm install laravel-elixir-minify-htmlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimum working gulpfile that requires laravel-elixir, registers the minify plugin, and minifies all Blade-compiled views in storage/framework/views/.
Migrate to Laravel Mix and use mix.minify() or the html-minifier package directly.
Consider using html-minifier directly or gulp-htmlmin v5+.
Refer to gulp-htmlmin documentation for valid options.
Set src to the compiled views directory (storage/framework/views), not the Blade source.
Run `npm install --save-dev laravel-elixir`.
Ensure you have `require('laravel-elixir-minify-html');` after requiring laravel-elixir.Add `var Elixir = require('laravel-elixir');` at the top of gulpfile.