laravel-elixir-blade-minifier
Introduction
This is an easy-to-use module to auto minify Laravel blade templates with laravel-elixir.
Usage
Simple
Code in gulpfile.js:
var elixir = ; ; ;
And you can use gulp
or gulp watch
command to minify your blade templates.
More
html-minifier options are available, but notice that blade template parser option is needed:
ignoreCustomFragments: /@.*[\r\n\s]*/ /@show/ /@stop/ /@parent/ /@endsection/ /@else/ /@endif/ /@endfor/ /@endforeach/ /@empty/ /@endforelse/ /@endwhile/ /@endpush/ /@[^(\r\n]*\([^)\r\n]*\)/