Skip to content

Instantly share code, notes, and snippets.

View ollicle's full-sized avatar

Oliver Boermans ollicle

View GitHub Profile
@twhid
twhid / uglify.js
Last active November 13, 2015 11:13
#!/usr/local/bin/node
// BBEdit text filter to uglify Javascript.
// Uses the default compression options, *except* it turns off warnings because they cause the script to error out.
//
// Requires uglifyjs https://github.com/mishoo/UglifyJS2
// In this example, I've installed uglifyjs globally via `npm install uglify-js -g`
// Your install directory may be different...
var UglifyJS = require('/usr/local/share/npm/lib/node_modules/uglify-js');