在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:HTMLMin/Laravel-HTMLMin开源软件地址:https://github.com/HTMLMin/Laravel-HTMLMin开源编程语言:PHP 97.2%开源软件介绍:Laravel HTMLMinLaravel HTMLMin is currently maintained by Raza Mehdi, and is a simple HTML minifier for Laravel. It utilises Mr Clay's Minify package to minify entire responses, but can also minify blade at compile time. Feel free to check out the change log, releases, license, and contribution guidelines. InstallationLaravel HTMLMin requires PHP 5.5+. This particular version supports Laravel 5.1-5.8, 6.x, 7.x and 8.x. To get the latest version, simply require the project using Composer: $ composer require htmlmin/htmlmin Once installed, you need to register the 'HTMLMin' => HTMLMin\HTMLMin\Facades\HTMLMin::class, ConfigurationLaravel HTMLMin supports optional configuration. To get started, you'll need to publish all vendor assets: $ php artisan vendor:publish This will create a There are three config options: Automatic Blade OptimizationsThis option ( Force Blade OptimizationsThis option ( Ignore Blade FilesThis option ( UsageHTMLMinThis is the class of most interest. It is bound to the ioc container as The The The Facades\HTMLMinThis facade will dynamically pass static method calls to the Minifiers\MinifierInterfaceThis interface defines the public method a minifier class must implement. Such a class must only provide a Http\Middleware\MinifyMiddlewareYou may put the Skipping MinificationAs well as being able to skip folders using the ( Just add the following comment to each file you want to skip: <!-- skip.minification --> Please note that if you use ( HTMLMinServiceProviderThis class contains no public methods of interest. This class should be added to the providers array in Further InformationThere are other classes in this package that are not documented here (such as the compiler class). This is because they are not intended for public use and are used internally by this package. Please note to clear view cache to see changes.
SecurityIf you discover a security vulnerability within this package, please send an e-mail to Raza Mehdi at [email protected]. All security vulnerabilities will be promptly addressed. LicenseLaravel HTMLMin is licensed under The MIT License (MIT). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论