Skip to content
/ min Public

Just FAST, parallel safely compress/minimize files from ./src to ./dist individualy.

License

Notifications You must be signed in to change notification settings

nexssp/min

Repository files navigation

@nexssp/min

Installation

npm i @nexssp/min -D # install for devDependencies

Just FAST minify/compress src to dist folder by one command.

image

CLI or package.json

npx @nexssp/min # it will just compress js files from ./src/ to ./dist/
npx @nexssp/min ./source/ ./destination/ # change source and destination

API Example

const { compress } = require("@nexssp/min");

(async () => {
  const result = await compress(from, to, { glob });

  result.forEach((r) =>
    ok(
      `${bold(yellow(r.file))} ${r.length} => ${r.compressed.length} ${bold(
        "(" + r.compressed.percentage + "%)"
      )}`
    )
  );
})();

About

Just FAST, parallel safely compress/minimize files from ./src to ./dist individualy.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published