1.2.0 • Published 8 months ago

uglify-my-js v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

uglify-my-js

A simple cli tool to minify single javascript file

Build status

Node version Npm version install size

Installation

npm i uglify-my-js@latest

Requires Node.js v10+ to run.

Usage

Output file is generated in the current directory. It will contain minified file and source-map.

Other helpful commands

> uglifymyjs —help
> uglifymyjs —version

Usage Example

See Sample.

Dependency

The tool is built on top of uglifyjs-webpack-plugin. Following is the fixed configuration currently it is using. Feel free add new issues if you want any customization.

{
  cache: false,
  parallel: true,
  uglifyOptions: {
    compress: {
      drop_console: true,
      warnings: false,
    },
    toplevel: true,
    keep_classnames: undefined,
    keep_fnames: false,
    nameCache: null,
    output: {
      beautify: false,
      comments: false,
    },
    compress: true,
    ecma: 6,
    mangle: true,
  },
  sourceMap: true,
}

Contributing

This library is designed to support JS files - i you want to add a new language support, we'd love you to contribute them here.

Please see Coding Guidelines when writing your PRs.

File issues in the Issues tab in GitHub

Use eslint-config-wesbos

Changelog

See CHANGELOG. Follow ThatJsDev for new updates.

1.2.0

8 months ago

1.1.13

8 months ago

1.1.12

8 months ago

1.1.11

8 months ago

1.1.10

8 months ago

1.1.9

8 months ago

1.1.8

8 months ago

1.1.7

8 months ago

1.1.6

8 months ago

1.1.5

8 months ago

1.1.4

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago