承接 blood72/laravel-blade-minify-compiler 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

blood72/laravel-blade-minify-compiler

最新稳定版本:v2.2.0

Composer 安装命令:

composer require blood72/laravel-blade-minify-compiler

包简介

Laravel Blade compile with minify

README 文档

README

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.

统计信息

  • 总下载量: 1.3k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-01