goproxy-yui-minify command

This example would minify standalone Javascript files (identified by their content type) using the command line utility YUI compressor http://yui.github.io/yuicompressor/ Example usage:

./yui -java /usr/local/bin/java -yuicompressor ~/Downloads/yuicompressor-2.4.8.jar
$ curl -vx localhost:8080  http://golang.org/lib/godoc/godocs.js
(function(){function g(){var u=$("#search");if(u.length===0){return}function t(){if(....
$ curl http://golang.org/lib/godoc/godocs.js | head -n 3
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
Version
v1.1.9-beta.0
Published
Feb 23, 2016
Platform
js/wasm
Imports
10 packages
Last checked
26 minutes ago

Tools for package owners.