承接 garfix/js-minify 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

garfix/js-minify

Composer 安装命令:

composer require garfix/js-minify

包简介

A fast Javascript minifier that removes unnecessary whitespace and comments

README 文档

README

A fast Javascript minifier that removes unnecessary whitespace and comments

Installation

If you are using Composer, use

composer require garfix/js-minify

Use

The simplest use of the library comes down to this:

$minifiedJs = \Garfix\JsMinify\Minifier::minify($js);

Where $js contains the unprocessed code and $minifiedJs holds the minified version.

If you want to change the default options, use minify($js, $options), where $options is an array of one or more of the following:

  • \Garfix\JsMinify\Minifier::FLAGGED_COMMENTS (bool, default: true) When set to false, /*! ... */ flagged comments are removed as well.

Background

I started this library because I believed JShrink could be made much faster by the use of dedicated regular expressions. This turned out to be true. It is about 10x faster on PHP 7 and 5x faster on PHP 8.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固