Registry / testing / broccoli-more-css

broccoli-more-css

JSON →
library0.1.0jsnpmunverified

CSS minifier for the Broccoli build tool, using more-css. Version 0.1.0 released in 2014, unmaintained. Compared to alternatives like clean-css, it aims to produce better minification results based on the CSS minification benchmark. However, both the plugin and its underlying more-css minifier are no longer actively developed. Works only with Node.js >= 0.10.0 and Broccoli. No TypeScript types.

npm install broccoli-more-css
INSTALL
IMPORT
SIG · BROCCOLI-MORE-CSS
B
broccoli-more-css
testingjavascriptv0.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.

moreCss
var moreCss = require('broccoli-more-css');
import moreCss from 'broccoli-more-css';
No ESM exports; must use CommonJS require()
moreCss (default)
var moreCss = require('broccoli-more-css'); tree = moreCss(tree, options);
var { moreCss } = require('broccoli-more-css');
Exports a single function; destructuring will yield undefined
options.radical
tree = moreCss(tree, { radical: false });
tree = moreCss(tree, { radical: 'false' });
radical is boolean, not string; default true

Shows basic usage of broccoli-more-css to minify a Broccoli tree of CSS files.

var moreCss = require('broccoli-more-css'); var broccoli = require('broccoli'); // Assuming you have a Broccoli tree (e.g., from broccoli-static-compiler) var sourceTree = 'app/styles'; // Minify CSS with default options (radical: true) var minifiedTree = moreCss(sourceTree); module.exports = minifiedTree;
Debug
Known issues
deprecatedPackage is no longer maintained; Node.js >=0.10.0 support only.
fix
Migrate to a maintained alternative like broccoli-clean-css (which uses clean-css) or broccoli-postcss.
affects: >=0.1.0
gotchaUnderlying more-css minifier may produce malformed output with some CSS constructs; not actively tested.
fix
Avoid using with complex or bleeding-edge CSS; consider using more robust minifiers.
affects: >=0.1.0
gotchaBroccoli 1.0+ compatibility not verified; the plugin was designed for older Broccoli versions.
fix
Use with broccoli 0.x or check compatibility manually.
affects: >=0.1.0
Errors
Common errors & fixes
Error: Cannot find module 'broccoli-more-css'
Package not installed or not present in node_modules.
fix
Run `npm install --save-dev broccoli-more-css`.
TypeError: moreCss is not a function
Importing incorrectly (e.g., destructuring) or using ESM import.
fix
Use `var moreCss = require('broccoli-more-css');` and call it directly.
Error: The Broccoli plugin requires a tree, not a string.
Passing a raw path string instead of a Broccoli tree object.
fix
Ensure you pass a Broccoli tree (e.g., from `broccoli.source` or `broccoli.makeTree`).
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
broccolirequiredBroccoli plugin interface required
more-cssrequiredunderlying CSS minifier
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
broccoli-more-css — npm install broccoli-more-css · libregistry