Socket
Book a DemoInstallSign in
Socket

hexo-console-clean-asset-folder

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-console-clean-asset-folder

Hexo plugin that remove empty asset folders

0.1.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

hexo-console-clean-asset-folder NPM version Dependency Status

Hexo console plugin that remove empty asset folders

Install

Install using npm.

$ npm install hexo-console-clean-asset-folder --save

Usage

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: true

After you finished the post composition, run following command

  $ hexo clean_asset_folder

Or

  $ hexo caf

Then 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_theme

All the empty folder under themes/my_awesome_theme will be cleaned.

  • Switch --no-draft prevent plug-in to scan /source/_drafts folder
  • Switch --no-post prevent plug-in to scan /source/_posts folder

License

MIT

NPM downloads

Keywords

hexo

FAQs

Package last updated on 18 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.