Skip to content

Commit

Permalink
feat: 修改说明
Browse files Browse the repository at this point in the history
  • Loading branch information
pakizheng committed Jul 26, 2021
1 parent f625179 commit f8f52bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ npm install gulp-ad-icon-shaking
- 支持三元判断的写法
- 开发模式下请监听 `wml` 文件的变更,只有这样才能实时编译查看变化
- 插件所在的任务请放在最后,因为最终会修改的是 js 文件,没有办法百分百保证插件修改文件后不会被js文件相关的任务覆盖
- 因为这个插件需要遍历全部的 wxml 文件,所以在使用这个插件的任务中不要使用 change 或者是 newer 这类只监听部分文件的插件

## 使用范例

Expand All @@ -40,7 +41,7 @@ function buildTs() {
}

function buildIcon() {
return src('src/**/*.wxml').pipe(aduiIconShaking).pipe(dest('dist'))
return src('src/**/*.wxml').pipe(aduiIconShaking(iconConfig.paths, iconConfig.iconsExtra)).pipe(dest('dist'))
},

exports.default = series(
Expand Down

0 comments on commit f8f52bf

Please sign in to comment.