How to use the @node-minify/core function in @node-minify/core

To help you get started, we’ve selected a few @node-minify/core 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 srod / node-minify / packages / cli / src / compress.js View on Github external
return new Promise((resolve, reject) => {
    minify(options)
      .then(() => {
        utils
          .getFilesizeGzippedInBytes(options.output)
          .then(sizeGzip => {
            resolve({
              compressorLabel: options.compressorLabel,
              compressor: options.compressor,
              size: utils.getFilesizeInBytes(options.output),
              sizeGzip: sizeGzip
            });
          })
          .catch(reject);
      })
      .catch(reject);
  });
};

@node-minify/core

core of @node-minify

MIT
Latest version published 2 years ago

Package Health Score

60 / 100
Full package analysis

Popular @node-minify/core functions