Minify Laravel Blade templates within the Laravel Elixir build pipeline. This package extends Gulp-based Elixir with a `blademin` method that processes Blade files using html-minifier while preserving Blade control structures (e.g., @if, @foreach). Version 0.0.8 is the latest and only stable release; the package is no longer actively maintained. It is specific to the deprecated Laravel Elixir build system (v5+), but still functional for legacy projects. Alternatives include using Laravel Mix with a custom post-processing plugin.
npm install laravel-elixir-blade-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Registers the blademin method and minifies all Blade templates from source to a separate directory.
Migrate to Laravel Mix and use a custom webpack plugin or a Blade post-processor like '@bengal/laravel-blade-minifier'.
Always pass the full regex array shown in the README as html-minifier options.
Use an alternative minifier compatible with your build system (e.g., 'laravel-mix-blade-minify').
Always require 'laravel-elixir' first, then require this package.
Run `npm install laravel-elixir --save-dev` and add `var elixir = require('laravel-elixir');` at the top of gulpfile.js.