@kur4ge/hexo-delete-sth

1.0.1 • Public • Published

hexo-remove-sth

In Hexo, some themes will generate resource files you don't want. Use this to delete them before deployment.

Installation

$ npm install @kur4ge/hexo-delete-sth --save

Usage

Setting up the configuration in _config.ymal

deploy:
  -
    type: 'delete-sth'
    deleteFiles:  # 支持 * 语法
      - img/logo.svg    # delete img/logo.svg
      - *.html          # delete all html files
    deleteEmptyFolder: true # if folder is empty, delete it
  - 
    type: 'do-other'
  -
    type: 'delete-sth'
    deleteFiles:  # 支持 * 语法
      - *.png
      - *.jpg
    deleteEmptyFolder: true # if folder is empty, delete it

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @kur4ge/hexo-delete-sth

      Weekly Downloads

      1

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      4.32 kB

      Total Files

      4

      Last publish

      Collaborators

      • kur4ge