<?php /** * Munee: Optimising Your Assets * * @copyright Cody Lundquist 2013 * @license http://opensource.org/licenses/mit-license.php */ $ds = DIRECTORY_SEPARATOR; $muneePath = __DIR__ . $ds . '..'; spl_autoload_register(function ($class) use ($ds, $muneePath) { $path = str_replace('\', DIRECTORY_SEPARATOR, $class); foreach (array('src', 'tests') as $dirPrefix) { $file = $muneePath . $ds . $dirPrefix . $ds . $path . '.php'; if (file_exists($file)) { require_once $file; break; } } }); defined('WEBROOT') || define('WEBROOT', __DIR__ . $ds . 'tmp'); require_once $muneePath . $ds . 'config' . $ds . 'bootstrap.php';
图片压缩裁剪,CSS,JS 文件合并和 minified,这些工作是网站开发中,必不可少的,但是这些工做如果都是自己来处理,会非常麻烦,所以今天就推荐一个用于优化图片,CSS,JS 等网站附件的全功能 PHP 类库:Munee。
Munee 有很强大的缓存功能,可以服务器端和用户端服务器上缓存资源。并且集成了 Imagine 这个工具用于图片的处理,可以在线快速调整图片大小,或者裁剪图片等。
Munee 可以自动编译 LESS,SCSS 和 CoffeeScript,并且还能将多个 CSS 和 JS 文件合并成一个请求,以及最小化和 GZip 压缩这些文件以节省带宽和更好的网站的性能。
本站所有资源均由网友贡献或各大下载网站转载。请自行检查软件的完整性!本站所有资源仅供学习参考。请不要将它们用于商业目的。否则,一切后果由您负责!如有侵权,请联系我们删除。联系方式:admin@php.cn
相关文章

21Nov2024
解决 UnsatisfiedLinkError: Can't Find Dependent Libraries in JNI Projects当开发 Java Native Interface (JNI) 项目时,您可能...

30Oct2019
phpmyadmin不显示登录页面解决方法:找到并打开phpMyAdmin\libraries\plugins\auth\AuthenticationCookie.class.php文件,将其中关于登录页面代码中的两处hide删除即可。

20Oct2024
phpMyAdmin 错误:“count():参数必须是实现可数的数组或对象”您是否遇到过 phpMyAdmin 错误,指出“./libraries/sql.lib.php#601\ncount() 中的警告:参数必须是数组或对象

19Oct2024
dacom.dll 在我的计算机上做什么? dacom.dll 是 Microsoft Corporation 创建的 Digital Anvil Component Libraries 使用的 DLL 文件。此过程仍在审核中。 dacom.dll 等非系统进程源自您安装的软件

19Feb2025
关键要点 培训DMD库用于将线,形状和文本绘制到点矩阵LED显示屏上。该库可以从freetronics github存储库中下载并复制到/arduino/libraries/folder中。 Arduino SK


Hot Tools
