Skip to content

Instantly share code, notes, and snippets.

@tommy351
Last active December 21, 2015 13:49
Show Gist options
  • Save tommy351/6315207 to your computer and use it in GitHub Desktop.
Save tommy351/6315207 to your computer and use it in GitHub Desktop.
Hexo gzip console plugin
hexo.extend.console.register('gzip', function(args, callback){
hexo.call('generate', function(err){
if (err) return callback(err);
// do gzip here...
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment