https://github.com/gkovacs/babili-inplace
Runs babili to minify ES6 javascript code in-place. To use uglify instead, see https://github.com/gkovacs/uglify-inplace
https://github.com/gkovacs/babili-inplace
babili command es2015 es2016 es2017 es6 javascript minify nodejs
Last synced: 9 months ago
JSON representation
Runs babili to minify ES6 javascript code in-place. To use uglify instead, see https://github.com/gkovacs/uglify-inplace
- Host: GitHub
- URL: https://github.com/gkovacs/babili-inplace
- Owner: gkovacs
- Created: 2017-02-05T03:02:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-05T03:27:11.000Z (almost 9 years ago)
- Last Synced: 2024-10-03T09:21:16.669Z (about 1 year ago)
- Topics: babili, command, es2015, es2016, es2017, es6, javascript, minify, nodejs
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# babili-inplace
Supply a list of files and they will be minified via [babili](https://github.com/babel/babili#readme) in-place. If your code does not use ES6 features, also consider [uglify-inplace](https://github.com/gkovacs/uglify-inplace)
## Install
```bash
npm install -g babili-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
babili-inplace index.js
```
You can also use wildcards. It will only minify Javascript files ending in .js and ignore other files. For example, to minify all javascipt files in the current directory:
```bash
babili-inplace ./*
```
### Credits
[Geza Kovacs](https://github.com/gkovacs)