How to use minify - 1 common examples

To help you get started, we’ve selected a few minify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github brightdigit / Speculid / scripts / minify.js View on Github external
function minifyFile(fileName, cb) {
  minify.optimize(fileName, {
    callback: function(pData) {
      fs.writeFile(fileName, pData, function(pError) {
        cb(pError);
      });
    }
  });
}

minify

Minifier of js, css, html and img

MIT
Latest version published 2 months ago

Package Health Score

76 / 100
Full package analysis

Popular minify functions