@micro-app/core
Version:
[Core] Pluggable micro application framework.
23 lines (18 loc) • 444 B
Markdown
# clean
默认清理 `microapp/.temp` 目录
可以通过接口添加目录。
## Usage
```js
api.registerMethod('beforeCommandClean', {
type: api.API_TYPE.EVENT,
description: '清理前事件',
});
api.registerMethod('addCommandClean', {
type: api.API_TYPE.ADD,
description: '增加清理事件',
});
api.registerMethod('afterCommandClean', {
type: api.API_TYPE.EVENT,
description: '清理完毕后事件',
});
```