seekgeeks/cssjsminify 问题修复 & 功能扩展

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

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

seekgeeks/cssjsminify

Composer 安装命令:

composer require seekgeeks/cssjsminify

包简介

CSS JS minify tool will help in minification of your entire js/css file and put in directly from where you can use it in production build. with simple command you can minify all static c content like stylesheets and javascripts to production ready code

README 文档

README

CSS & JS minify is compact function abstracted on another awesome package matthiasmullie/minify. This library provides a universal abstraction where you can use this function for both css and js file and we have added additional feature by which you can automate all stuff, remove duplication and stay updated.

Requirement

  • PHP Package : matthiasmullie/minify, will be updated automatically.
  • PHP version : 7 (Recomended)
  • PHP cli

Installation

You can use Composer or simply Download the Release

Composer

The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

composer require seekgeeks/cssjsminify

Finally, be sure to include the autoloader:

require_once '/path/to/your-project/vendor/autoload.php';

Download the Release

If you abhor using composer, you can download the package in its entirety. Download the zip/rar file for a package including this library and its dependencies.

Uncompress the zip file you download, and include the autoloader in your project:

require_once '/path/to/seekgeeks/cssjsminify/vendor/autoload.php';

How it works?

Using this library along with maintaining is super easy. You can just do following to minify your files

php path/to/file/autominify.php

This will automatically pick files from pre-configured source directory, and will create a directory if not exists say min/ inside that to place minified files. It will initiate minification only once the source file is modified within given timespan.

Example

Suppose your source file is

asset/css/style.css

Your destination file will be

asset/css/min/style.css

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固