Registry / devops / lightningcss-cli-darwin-x64

lightningcss-cli-darwin-x64

JSON →
library1.32.0jsnpmunverified

Platform-specific binary for the Lightning CSS CLI tool on macOS x64 (>=1.0.0). Lightning CSS is a high-performance CSS parser, transformer, and minifier written in Rust, offering significantly faster processing than JavaScript-based tools like PostCSS and cssnano. It runs at a stable release cadence (monthly). Key differentiators: Rust-based speed, integrated vendor prefixing and syntax lowering, support for modern CSS features (nesting, layers, color-mix, etc.), and seamless integration with the Parcel bundler ecosystem. This package is the native binary for darwin x64, automatically installed by the parent lightningcss-cli package.

npm install lightningcss-cli-darwin-x64
INSTALL
IMPORT
SIG · LIGHTNINGCSS-CLI-D
L
lightningcss-cli-darwin-x64
devopsjavascriptv1.32.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lightningcss-cli
npx lightningcss
Cannot directly import this package - it is a binary
This package is a CLI tool, not a library. Use npx lightningcss or install lightningcss-cli globally.

Minify a CSS file using the Lightning CSS CLI with compression and custom output.

npx lightningcss --minify --output-style compressed input.css -o output.min.css
Debug
Known issues
gotchaThis is a platform-specific package - it only works on macOS x64. Do not install directly; use the main lightningcss-cli package which handles platform detection.
fix
Run `npm install lightningcss-cli` instead of this package.
affects: >=1.0.0
gotchaThe output file must be specified with -o flag, otherwise it prints to stdout.
fix
Add `-o output.css` to write to a file.
affects: >=1.0.0
gotchaSome CSS features like nesting require the `--targets` flag to avoid syntax errors.
fix
Specify targets with `--targets '> 0.5%, not dead'` to enable modern features.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'lightningcss-cli-darwin-x64'
Installed the platform-specific package directly instead of the main package
fix
Run `npm uninstall lightningcss-cli-darwin-x64` and then `npm install lightningcss-cli`
Unknown option: --minify
Using an outdated version that doesn't support this flag (added in v1.0.0)
fix
Update to the latest version: `npm update lightningcss-cli -g` or check the version with `npx lightningcss --version`
Error: Expected a CSS file, but got a directory
Passing a directory instead of a file
fix
Specify a single CSS file path, e.g., `npx lightningcss src/styles.css -o dist/styles.min.css`
Upgrade
Version history
1.32.0latest on npm
Audit
Dependencies
lightningcss-clirequiredThis is a platform-specific optional dependency of the main lightningcss-cli package
Agent activity
2 hits · last 30 days
node
2
Resources
lightningcss-cli-darwin-x64 — npm install lightningcss-cli-darwin-x64 · libregistry