0.1.0 • Published 11 years ago
hexo-console-clean-asset-folder v0.1.0
hexo-console-clean-asset-folder

Hexo console plugin that remove empty asset folders
Install
Install using npm.
$ npm install hexo-console-clean-asset-folder --saveUsage
With the help of hexo-console-clean-asset-folder, now you can feel free to have following config in your _config.yml
post_asset_folder: trueAfter you finished the post composition, run following command
$ hexo clean_asset_folderOr
$ hexo cafThen all the empty asset folders will be removed automatically
Advanced Usage
If you have empty folders in folder other than source/_drafts or source/_posts. You can specify the path in this way:
$ hexo caf --no-draft --no-post themes/my_awesome_themeAll the empty folder under themes/my_awesome_theme will be cleaned.
- Switch
--no-draftprevent plug-in to scan/source/_draftsfolder - Switch
--no-postprevent plug-in to scan/source/_postsfolder
License
MIT
0.1.0
11 years ago