0.5.2 • Published 4 years ago

babel-minify v0.5.2

Weekly downloads
16,035
License
MIT
Repository
github
Last release
4 years ago

babel-minify

Node API and CLI

npm

Use babel-minify if you don't already use babel (as a preset) or want to run it standalone.

Installation

npm install babel-minify --save-dev

Usage

Node API

const minify = require("babel-minify");

const {code, map} = minify("input code", {
  mangle: {
    keepClassName: true
  }
});

CLI

minify input.js --out-file input.min.js --mangle.keepClassName

Node API

const minify = require("babel-minify");

minify(input, minifyOptions, overrides)

minifyOptions

Refer babel-preset-minify options

overrides

CLI Options

minify input.js [options]

Simple preset options

For simple options, use --optionName in CLI

Refer preset's 1-1 options for the list of options

Example:

minify input.js --mangle false

Nested preset options

Usage: --optionName.featureName

Example:

minify input.js --mangle.keepClassName --deadcode.keepFnArgs --outFile input.min.js

Refer the corresponding plugins to know the list of options it takes

IO options

  • --out-file path/to/file.min.js: Output filename. Used only when reading from STDIN / a single input file
  • --out-dir path/to/dir: Output Directory.
concatifieurrnw-tailwind.macro@infinitebrahmanuniverse/nolb-babel-mvisionr-dev@everything-registry/sub-chunk-1201web-tooling-benchmarkwx-smisteal-toolsvisiappjsizeklass-loaderindo-compilerhendawylumpy@while-and-for/root@xelzs/code-sizebabel-minify-loaderbabel-preset-mincoder-vue-component-middlewarecustom-react-scriptdev-confbiaozibookmarkleterdistjsstrix-jsua-npmscript-notifiertm-orders-servicetm-perfomance-checktm-products-servicetm-servicetm-service-apitm-service-cartstm-service-dummytm-service-orderstm-service-payment-gatetm-service-productstm-service-vendorswasm-moduleminified-sizepage-helperrollup-plugin-esminrnw-tailwindseturonseturon_designpragma-templateslim-build@equippedcoding/appfactory-cli@fovea/cli@frontender-magazine/fm-user@jimpick/distjs-dat@stelter/igxwebapi@plasma-platform/plasma-currency-formatter@plasma-platform/tm-service-memberships@plasma-platform/tm-service-navigations@plasma-platform/tm-service-notifications@plasma-platform/tm-service-pages@plasma-platform/tm-service-payment-gate@plasma-platform/tm-service-promos@plasma-platform/tm-service-properties@plasma-platform/tm-service-reviews@plasma-platform/tm-service-services@plasma-platform/tm-perfomance-check@plasma-platform/tm-service-apv@plasma-platform/tm-service-auth@plasma-platform/tm-service-balances@plasma-platform/tm-service-carts@plasma-platform/tm-service-chat@plasma-platform/tm-service-collections@plasma-platform/tm-service-delivery@plasma-platform/tm-service-discounts@plasma-platform/tm-service-loyalty@plasma-platform/tm-service-mailer@aaronshaf/dem@beeant/ocisrc@chrisjohnnewton/compiler@amir-ghostrider-dev/webpack-config@secundant/webpack-module-babel@radic/build-tools@radic/build-tools-webpack@react-native-anywhere/anywhereify@roadup/smi
0.5.2

4 years ago

0.6.0-alpha.9

6 years ago

0.5.1

6 years ago

0.6.0-alpha.8

6 years ago

0.6.0-alpha.5

7 years ago

0.6.0-alpha.4

7 years ago

0.5.0

7 years ago

0.5.0-alpha.9

7 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.10

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago