定制 aligny/tailwind-builder 二次开发

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

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

aligny/tailwind-builder

Composer 安装命令:

composer require aligny/tailwind-builder

包简介

Composer package to build Tailwind CSS using the standalone CLI binary.

README 文档

README

A Composer package that compiles CSS using the Tailwind standalone binary matching the current OS.

Installation

composer require aligny/tailwind-builder

Usage

vendor/bin/tailwind-builder

Example with options:

vendor/bin/tailwind-builder assets/tailwind.css \
  --output=public/styles.css \
  --minify \
  --tailwind-version=v4.3.0

vendor/bin/tailwind-build remains available as an alias to vendor/bin/tailwind-builder.

Install globally

To install the command globally, you can use:

composer global require aligny/tailwind-builder
composer global config bin-dir --absolute

Options

  • input (argument): source CSS path. Default: assets/tailwind.css
  • --output|-o: compiled CSS path. Default: <path>/styles.css
  • --watch|-w: watch mode
  • --minify|-m: minification
  • --config|-c: Tailwind config path (mainly for v3)
  • --tailwind-version: Tailwind version (default v4.3.0)
  • --platform: platform override (auto, linux-x64, linux-arm64, macos-x64, macos-arm64, windows-x64, etc.)
  • --bin-path: explicit path to a local binary (skips download)
  • --checksum: expected binary SHA-256 (hex or sha256: prefix)
  • --insecure-skip-checksum-verification: disables checksum verification (not recommended)

Notes

  • The binary is downloaded from Tailwind GitHub Releases and cached in .cache/tailwind/<version>/.
  • By default, the package verifies the binary SHA-256 using the digest exposed by the GitHub Releases API; if metadata is unavailable, the command fails to avoid running an unverified binary.
  • You can explicitly provide a hash with --checksum (useful in restricted/offline environments).
  • During concurrent execution, a lock file prevents simultaneous downloads.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固