Use 'after_generate' instead of 'before_exit'

Compatibility with hexo clean
This commit is contained in:
weyusi 2018-09-28 17:22:22 +09:30
parent ea13ea9967
commit 71c5878400
2 changed files with 2 additions and 2 deletions

View File

@ -45,6 +45,6 @@ var assign = require('object-assign');
hexo.extend.filter.register('after_render:html', filter.logic_html);
hexo.extend.filter.register('after_render:css', filter.logic_css);
hexo.extend.filter.register('after_render:js', filter.logic_js);
hexo.extend.filter.register('before_exit', filter.logic_gzip);
hexo.extend.filter.register('after_generate', filter.logic_gzip);
}
//}

View File

@ -1,7 +1,7 @@
{
"name": "hexo-yam",
"description": "Yet Another Minifier. Minify and compress html, js and css",
"version": "0.4.0",
"version": "0.4.1",
"readme": "README.md",
"main": "index.js",
"directories": {