An open API service indexing awesome lists of open source software.

https://github.com/gkovacs/uglify-inplace

Runs uglify to minify javascript code in-place. See https://github.com/gkovacs/babili-inplace if you need ES6 features
https://github.com/gkovacs/uglify-inplace

command javascript minify nodejs uglify

Last synced: about 1 month ago
JSON representation

Runs uglify to minify javascript code in-place. See https://github.com/gkovacs/babili-inplace if you need ES6 features

Awesome Lists containing this project

README

          

# uglify-inplace

Supply a list of files and they will be uglified in-place. This uses uglify - if you have ES6 code, use [babili-inplace](https://github.com/gkovacs/babili-inplace) instead.

## Install

```bash
npm install -g uglify-inplace
```

## Usage

Supply a list of files and they will be uglified. For example, the following will overwrite index.js with a minified version.

```bash
uglify-inplace index.js
```

You can also use wildcards. It will only minify Javascript files ending in .js and ignore other files. For example, to uglify all javascipt files in the current directory:

```bash
uglify-inplace ./*
```

### Credits

[Geza Kovacs](https://github.com/gkovacs)