add --minify flag and integrate with esmangle