Registry / devops / lasso-clean-css

lasso-clean-css

JSON →
library2.1.0jsnpmunverified

Lasso.js plugin to minify CSS using clean-css. Current stable version is 2.1.0, released with support for Lasso.js integration. It allows passing clean-css options through configuration and requires disabling the default Lasso.js minifier to avoid double minification. It is a niche plugin for projects using the Lasso.js build tool, contrasting with general-purpose CSS minifiers like cssnano or clean-css CLI.

npm install lasso-clean-css
INSTALL
IMPORT
SIG · LASSO-CLEAN-CSS
L
lasso-clean-css
devopsjavascriptv2.1.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.

plugin
require('lasso-clean-css')
CommonJS require; no named export, used via Lasso.js configuration.
config
{"plugin": "lasso-clean-css", "config": {}}
{"plugin": "lasso-clean-css"} (missing config object)
Configuration object passed to Lasso.js, not directly imported.

Configures Lasso.js to use lasso-clean-css for CSS minification with custom clean-css options and disables default minifier.

// lasso-config.json { "plugins": [ "lasso-less", { "plugin": "lasso-clean-css", "config": { "aggressiveMerging": false } } ], "minify": false }
Debug
Known issues
gotchaWithout disabling Lasso's default minifier ('minify': false), CSS will be minified twice, potentially causing errors or unexpected output.
fix
Set 'minify': false in Lasso configuration.
affects: >=0.0.0
deprecatedclean-css v5 dropped aggressiveMerging and other options; ensure compatibility with clean-css version used.
fix
Check clean-css changelog and update plugin config accordingly.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'lasso-clean-css'
Plugin not installed or incorrect path.
fix
npm install lasso-clean-css --save
Minification failed due to double minification
Both default Lasso minifier and lasso-clean-css are active.
fix
Set 'minify': false in Lasso configuration.
Upgrade
Version history
2.1.0latest on npm
Audit
Dependencies
lassooptionalPeer dependency for Lasso.js plugin integration
clean-cssrequiredUnderlying CSS minification library
Agent activity
2 hits · last 30 days
node
2
Resources
lasso-clean-css — npm install lasso-clean-css · libregistry