https://github.com/bestikk/bestikk-uglify
A simple tool to uglify JavaScript files based on Google Closure Compile
https://github.com/bestikk/bestikk-uglify
build-tool javascript uglify
Last synced: about 1 year ago
JSON representation
A simple tool to uglify JavaScript files based on Google Closure Compile
- Host: GitHub
- URL: https://github.com/bestikk/bestikk-uglify
- Owner: bestikk
- License: mit
- Created: 2016-09-25T13:54:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-10-20T14:43:22.000Z (over 3 years ago)
- Last Synced: 2025-04-30T20:08:08.329Z (about 1 year ago)
- Topics: build-tool, javascript, uglify
- Language: JavaScript
- Size: 14.9 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
# Bestikk Uglify
ifdef::env-github[]
image:https://github.com/bestikk/bestikk-uglify/actions/workflows/ci.yml/badge.svg[Build status, link=https://github.com/bestikk/bestikk-uglify/actions/workflows/ci.yml]
image:http://img.shields.io/npm/v/bestikk-uglify.svg[npm version, link=https://www.npmjs.org/package/bestikk-uglify]
endif::[]
A simple tool to uglify JavaScript files based on Google Closure Compiler.
## Install
$ npm i --save-dev bestikk-uglify
## Usage
IMPORTANT: Google Closure Compiler requires Java 7 or higher and `java` binary must be available in your `PATH`.
```javascript
var uglify = require('bestikk-uglify')
uglify.minify('index.js', 'index.min.js')
.then(() => /* do something * /) // <1>
```
<1> `minify` function returns a `Promise`.