Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pakizheng committed Jul 9, 2021
1 parent fd26e81 commit 77c8a49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = (paths, iconsExtra) => {
})
return through.obj(
{ defaultEncoding: 'utf8' },
(file, encoding, callback) => {
function iconShaking (file, encoding, callback) {
// 只处理 wxml 文件
if (file.relative.includes('.wxml')) {
const htmlParser = new htmlparser2.Parser({
Expand Down Expand Up @@ -122,6 +122,7 @@ module.exports = (paths, iconsExtra) => {
fs.writeFileSync(item, contents, 'utf-8')
})
}
this.push(file)
callback()
}
)
Expand Down

0 comments on commit 77c8a49

Please sign in to comment.