Skip to content
A directory cleaner middleware for smash-cli.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.js
index.test.js
package-lock.json
package.json

README.md

smash-middleware-clean

A directory cleaner middleware for smash-cli.

使用

.smash/task.yml 文件中加入以下配置:

clean:
  - name: smash-middleware-clean
    dirs: 
      - ./dist
      - ./build

然后,执行以下命令来运行 clean 任务:

$ smash run clean

上面的 clean 任务会清空当前工作目录下的 distbuild 目录。

链接

You can’t perform that action at this time.