0.5.2 • Published 3 years ago

babel-minify v0.5.2

Weekly downloads
16,035
License
MIT
Repository
github
Last release
3 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-loaderstrix-jsua-npmscript-notifiertm-orders-servicetm-perfomance-checktm-products-servicetm-servicetm-service-apitm-service-cartstm-service-dummytm-service-orderstm-service-payment-gatetm-service-productstm-service-vendors@amir-ghostrider-dev/webpack-config@beeant/ocisrc@chrisjohnnewton/compiler@aaronshaf/demwasm-module@fovea/cli@frontender-magazine/fm-user@equippedcoding/appfactory-cli@jimpick/distjs-dat@react-native-anywhere/anywhereify@radic/build-tools@radic/build-tools-webpack@plasma-platform/tm-service-mailer@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/plasma-currency-formatter@secundant/webpack-module-babel@roadup/smiminified-sizepage-helperrollup-plugin-esminrnw-tailwindseturonseturon_designpragma-templateslim-buildindo-compilerhendawylumpy@while-and-for/root@xelzs/code-size@stelter/igxwebapibabel-minify-loaderbabel-preset-mincoder-vue-component-middlewarecustom-react-scriptdev-confbiaozibookmarkleterdistjs
0.5.2

3 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

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 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

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.10

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago