This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'); |