nambu-ch/pimcore-minify-cssjs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

nambu-ch/pimcore-minify-cssjs

Composer 安装命令:

composer require nambu-ch/pimcore-minify-cssjs

包简介

Pimcore 5.x CSS and JS minifier

README 文档

README

Pimcore 5.x/6.x package which automatically joins and minifies css and js files. Helpful when mod_pagespeed is not available.

Install and Enable

composer require nambu-ch/pimcore-minify-cssjs
php bin/console pimcore:bundle:enable MinifyCssJs

Usage

Include your CSS and JS Files as you are used to it with the headLink and headScript Template Helpers

$view->headLink()->appendStylesheet('/static/css/example.css');
echo $view->headLink();

$view->headScript()->appendFile('/static/js/example.js');
echo $view->headScript();

While in debug mode all Files are includes separatly, but via cache-buster.

In non-debug mode all css and js files will be combined and minified by the package matthiasmullie/minify which is a dependency. The generated file will be placed in web/var/tmp. To regenerate the cached file either clear your tmp files via pimcore menu or switch to debug mode again.

While you are in debug mode the helpers will check if any of the used css or js files is newer than the generated one. In that case the generated file is deleted and will be generated with a new timestamp the next time someone in non-debug mode visits the site.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2019-01-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固