Download the PHP package rzl-zone/blade-minify without Composer
On this page you can find all versions of the php package rzl-zone/blade-minify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rzl-zone/blade-minify
More information about rzl-zone/blade-minify
Files in rzl-zone/blade-minify
Package blade-minify
Short Description A Laravel package to seamlessly minify Blade HTML output for faster pages and a better user experience.
License MIT
Homepage https://github.com/rzl-zone/blade-minify
Rated 4.00 based on 1 reviews
Informations about the package blade-minify
Blade Minify
Blazing-Fast Output Minifier for Laravel Blade Views.
Blade Minify automatically minifies your rendered HTML output, stripping unnecessary whitespaces and comments to ensure smaller page sizes and optimal load times.
Built with β€οΈ by @rzl-zone.
π Table of Contents
- π Requirements
- βοΈ Installation
- π Setup
- π₯ Usage
- βΉοΈ Programmatic Manual Operations
- βΉοΈ Inline Blade Directive Isolation
- β‘οΈ Advanced Integration with Vite & React Fast Refresh
- π¦ Custom Vite Architecture Mapping
- βοΈ Environment Tailoring Examples
- π How to consume these in
vite.config.js - π» Blade Implementation Usage
- π Changelog
- π€ Contributing
- β€οΈ Become a Sponsor
- π‘ Security
- π Credits
- π License
- π Framework & Reference Links
π Requirements
Laravel Framework & illuminate/support |
PHP |
|---|---|
| ^10.x | ^11.x | ^12.x | ^13.x | ^8.1 |
βοΈ Installation
You can install the package via composer:
π Setup
Publish config
Add middleware to web middleware group within app/Http/Kernel.php
π₯ Usage
Enable in .env
Disable in .env
Minify only in production
Minify at all mode APP Env (default)
Ignore specific route names from minifying render output
βΉοΈ Programmatic Manual Operations
βΉοΈ Inline Blade Directive Isolation
Enable in .env
Disable in .env
Minify only in production
Minify at all mode APP Env (default)
Ignore specific route names from minifying render output
βΉοΈ Programmatic Manual Operations
βΉοΈ Inline Blade Directive Isolation
To prevent specific code segments or third-party blocks from being targeted by the regex compression loops, wrap your code inside the dedicated wrapper directive:
β‘οΈ Advanced Integration with Vite & React Fast Refresh
No special layout modifications or fragile workarounds are required.
The package natively tracks, isolates, and guards core asset bundler structuresβsuch as React Fast Refresh preamblesβensuring strict security tokens and javascript scopes are preserved post-minification.
π¦ Custom Vite Architecture Mapping
Publishing the configuration creates the custom-vite block inside config/rzlzone-blade-minify.php. This gives you full control over customized asset folders, CSP nonces, and hot-reload file parameters:
βοΈ Environment Tailoring Examples (.env)
You can easily override your asset pipeline behavior dynamically without touching your production config file:
π How to consume these in vite.config.js
To make your frontend build tool automatically adapt to the configuration above, load the environment variables securely and bind them to your Vite options:
π» Blade Implementation Usage
Standard framework asset directives compile seamlessly.
The core minifier flags these tags with internal structural attributes (rzl-zone--bm) to ensure they remain safe and functional:
β οΈ Configuration Sync Warning: If you choose to modify build_dir or manifest_name within your environment configuration, ensure that your root vite.config.js script properties (build.outDir, build.manifest) are mirrored exactly to prevent absolute path breakdown cycles during deployments.
π Changelog
Please see CHANGELOG for more information what has changed recently.
π€ Contributing
Please see CONTRIBUTING for details.
β€οΈ Become a Sponsor
π‘ Security
Please report issues to [email protected].
π Credits
- Rzl App
- All Contributors
π License
The MIT License (MIT). Please see License File for more information.
π Framework & Reference Links
| Reference | URL |
|---|---|
| π Laravel Docs | https://laravel.com/docs |
| π Illuminate\Support | https://github.com/laravel/framework/tree/13.x/src/Illuminate/Support |
| π PHP Official | https://www.php.net |
β
Enjoy rzl-zone/blade-minify?
Leave a β on GitHub β it keeps this project thriving!
β¨ From rzl-zone β where code meets passion.
All versions of blade-minify with dependencies
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
php Version ^8.1