Compressors
Csso

CSSO

CSSO can compress only CSS files.

https://github.com/css/csso (opens in a new tab)

Usage

const minify = require('@node-minify/core');
const csso = require('@node-minify/csso');
 
minify({
  compressor: csso,
  input: 'foo.css',
  output: 'bar.css',
  callback: function(err, min) {}
});
Last updated on December 5, 2022