Compressors
Cssnano

cssnano

cssnano can compress only CSS files.

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

Usage

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