Registry / devops / cssnano-nightly

cssnano-nightly

JSON →
library0.8.4jsnpmunverified

An unofficial nightly release of cssnano, a modular CSS minifier built on top of the PostCSS ecosystem. Current version 0.8.4 wraps the cssnano core and publishes nightly builds for early adopters. Release cadence is tied to nightly automated builds; it is not a stable release channel. Key differentiators: provides early access to upcoming cssnano features and fixes before official release, but comes with no stability guarantees and potential breaking changes between nightlies. Intended for testing and integration validation only, not for production use.

npm install cssnano-nightly
INSTALL
IMPORT
SIG · CSSNANO-NIGHTLY
C
cssnano-nightly
devopsjavascriptv0.8.4
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.

default
import cssnano from 'cssnano-nightly'
const cssnano = require('cssnano-nightly')
Package is ESM-only? The parent cssnano supports both. For nightly, use default import.
default (require)
const cssnano = require('cssnano-nightly')
CommonJS require works if package declares main entry.
default (PostCSS plugin)
plugins: [cssnano()]
plugins: [cssnano]
cssnano is a function that returns a PostCSS plugin; invoke it.

Demonstrates how to use cssnano-nightly with PostCSS to minify CSS. Note: invoke cssnano() as a function.

import postcss from 'postcss'; import cssnano from 'cssnano-nightly'; const input = 'h1 { color: red; }'; postcss([cssnano()]).process(input).then(result => { console.log(result.css); // h1{color:red} });
Debug
Known issues
gotchacssnano-nightly is an unofficial nightly build; do not use in production.
fix
Use the official stable cssnano package instead.
affects: >=0.0.0
breakingNightly releases may introduce breaking changes without notice; always pin a specific version.
fix
Use exact version in package.json: 'cssnano-nightly': '0.8.4'
affects: >=0.0.0
deprecatedThe nightly package may be removed/discontinued if upstream cssnano adopts official nightly releases.
fix
Monitor upstream cssnano repository for changes.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'cssnano-nightly'
Package not installed or typo in package name.
fix
npm install cssnano-nightly
TypeError: cssnano is not a function
Using cssnano instead of cssnano() in PostCSS plugins array.
fix
Use cssnano() (invoke the function)
Error: PostCSS plugin cssnano requires PostCSS 8
Installed PostCSS version is too old (<8).
fix
npm install postcss@latest
Upgrade
Version history
0.8.4latest on npm
Audit
Dependencies
postcssrequiredcssnano is a PostCSS plugin and requires PostCSS to be installed
Agent activity
8 hits · last 30 days
node
8
Resources
cssnano-nightly — npm install cssnano-nightly · libregistry