Compressors
Sqwish

sqwish

sqwish can compress only CSS files.

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

Usage

const minify = require('@node-minify/core');
const sqwish = require('@node-minify/sqwish');
 
minify({
  compressor: sqwish,
  input: 'foo.css',
  output: 'bar.css',
  callback: function(err, min) {}
});

Options

minify({
  compressor: sqwish,
  input: 'foo.css',
  output: 'bar.css',
  options: {
    strict: true // strict optimizations
  },
  callback: function(err, min) {}
});
Last updated on December 5, 2022