New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

blood72/laravel-blade-minify-compiler

Laravel Blade compile with minify
1,470 2
Install
composer require blood72/laravel-blade-minify-compiler
Latest Version:v2.2.0
PHP:>=7.3
Laravel:7 · 8 · 9
License:MIT
Last Updated:Jan 13, 2022
Links: GitHub  ·  Packagist
Maintainer: b72kor@gmail.com

Laravel Blade Compiler

Laravel Blade Compiler with minify for personal use

Index

Requirement

  • PHP >= 7.3
  • Laravel ^7.0 | ^8.0 | ^9.0
  • blood72/blade-minify ^1.4

Installation

Install using the composer.

composer require blood72/laravel-blade-minify-compiler

Configuration

# enable/disable blade minifier (true/false)
BLADE_MINIFY_ENABLED=true

You can customize CSS, JS Minifier like under example.

// 'options' => [],

'options' => [
    'cssMinifier' => [\Minify_CSSmin::class, 'minify'],
    'jsMinifier' => function ($contents) { return \JSMin\JSMin::minify($contents); }, // you can use callback
],

You can publish config file.

php artisan vendor:publish --provider="Blood72\Minify\Compilers\BladeCompilerServiceProvider"

Reference

  • Steve Clay's minify
  • Graham Campbell and Raza Mehdi's HTMLMin (mainly inspired)

License

This package is open-sourced software licensed under the MIT license.

Related Packages

wpb/string-blade-compiler

Laravel Blade String Compiler, render string as blade templates

1,105,143 172
esdlabs/string-blade-compiler

Render Blade templates from string

10,090 0
enbit/string-blade-compiler

Laravel Blade String Compiler, render string as blade templates

2,287 0
ahurov/string-blade-compiler

Laravel Blade String Compiler, render string as blade templates

42 0
softheroes/indenting-persistent-blade-compiler

Extension on the Laravel Blade compiler that persists indenting when using repla...

7,857 0

Version History

Version Released PHP Laravel License
v2.2.0 >=7.3 ^7.0|^8.0|^9.0 MIT
v2.1.0 >=7.3 ^7.0|^8.0 MIT
v2.0.0 ^7.3 ^7.0|^8.0 MIT
v1.0.0 ^7.2.5 ^7.0 MIT