Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 769 Bytes

README.adoc

File metadata and controls

24 lines (16 loc) · 769 Bytes

Bestikk Uglify

Build status npm version

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.
var uglify = require('bestikk-uglify')

uglify.minify('index.js', 'index.min.js')
  .then(() => /* do something * /) // (1)
  1. minify function returns a Promise.