定制 firewizard/magento-minifier 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

firewizard/magento-minifier

最新稳定版本:1.2.0

Composer 安装命令:

composer require firewizard/magento-minifier

包简介

Magento on-the-fly CSS & JS minifier

README 文档

README

Magento on-the-fly CSS & JS minifier, with layout handle merging and automatic file renaming.

Facts

Description

The extension uses CssMin and JsMin to sqeeze every byte out of the css and javascript resources.

Advantages

  • Faster loading times
  • Less stress on the server and on bandwith
  • Improving PageSpeed score with 4-8 points
  • Checking 4 to-do's from the Web Performance Best Practices Guide
  • Browser & reverse proxy cache invalidation through automatic filename changes – works great with CloudFront and Varnish
  • Layout handle merging algorithm, so common resources get cached on the client-side

All available settings can be found under Admin - Configuration - Developer.

The extension rewrites 2 Magento classes:

  • Mage_Core_Model_Layout_Update
  • Mage_Core_Model_Design_Package

Requirements

  • Same as your Magento installation

Compatibility

  • Magento >= 1.4

Installation Instructions

Manually

  • Clone the repository or download the latest version
  • Copy all the files into your Magento document root

Via modman

  • Install modman
  • From your Magento root folder, run modman clone https://github.com/firewizard/Mandagreen_Minifier.git

Via composer

{
    "require": {
        "firewizard/magento-minifier":"*"
    },
    "repositories": [
	    {
            "type": "composer",
            "url": "http://packages.firegento.com"
        }
    ],
    "extra":{
        "magento-root-dir": "./"
    }
}
  • From your composer.json folder run php composer.phar install or composer install

Final steps

  • Clear the cache, logout from the admin panel and then log back in
  • Configure and activate the extension under System - Configuration - Developer.

Uninstallation

  • Remove all extension files from your Magento installation:
app/code/community/Mandagreen/Minifier
app/etc/modules/Mandagreen_Minifier.xml
app/locale/en_US/Mandagreen_Minifier.csv
  • Via modman: modman remove Mandagreen_Minifier
  • Via composer, remove the requirement of firewizard/magento-minifier

Support

If you have any issues with this extension, open an issue on GitHub.

Contribution

Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.

Developer

Cristian Nicolescu http://mandagreen.com
@firewizard

License

GNU General Public License, version 3 (GPL-3.0)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2015-01-11