Last active
December 21, 2015 13:49
-
-
Save tommy351/6315207 to your computer and use it in GitHub Desktop.
Hexo gzip console plugin
This file contains 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
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