public class NormalizeJSMinifier implements Minifier {
@Override
public InputStream minify(String name, String type, InputStream stream) throws IOException {
if (type.equals("script")) {
NormalizeJSReader reader = new NormalizeJSReader(new InputStreamReader(stream));
String s = Tools.read(reader);
return new ByteArrayInputStream(s.getBytes());
} else {
throw new IOException("Can only process scripts and not " + type + " asset");
}