Plugin for the Makestatic static site compiler to optimize CSS files using clean-css. Version 1.0.25, part of the Makestatic ecosystem. It provides a static minifier method that compresses CSS content and assigns the result to the file's content property. Different from generic CSS minifiers by being tightly integrated with Makestatic's build pipeline. Low maintenance, no recent updates.
npm install makestatic-optimize-cssNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use OptimizeCss plugin both via instance and static methods to minify CSS content.
Upgrade Node.js to version 6.1 or later.
Ensure proper Makestatic context is provided if not using directly.
Consider switching to modern CSS minifiers like cssnano or clean-css directly.
const OptimizeCss = require('makestatic-optimize-css').default;const optimizer = new OptimizeCss(); optimizer.sources(...);
No dependency data recorded yet.