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
- Host: GitHub
- URL: https://github.com/gkovacs/uglify-inplace
- Owner: gkovacs
- Created: 2016-12-25T06:11:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-05T03:09:27.000Z (over 9 years ago)
- Last Synced: 2025-01-30T14:16:46.502Z (over 1 year ago)
- Topics: command, javascript, minify, nodejs, uglify
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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)