公告板
版本库
filestore
活动
搜索
登录
main
/
ltkj_peisapp_new
路泰科技体检小程序UI设计新版本
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
1
wwl
5 天以前
a6cdbcfe28fcc40ebb4919f57d60fb20122e8e57
[ltkj_peisapp_new.git]
/
node_modules
/
mp-html
/
plugins
/
audio
/
build.js
1
2
3
4
5
6
7
8
9
10
11
module.exports = {
usingComponents: {
'my-audio': '../audio/audio'
},
handler (file) {
// 删去原来的 audio 标签
if (file.basename === 'node.wxml' || file.basename === 'node.vue') {
file.contents = Buffer.from(file.contents.toString().replace(/<audio[\s\S]+?>/, ''))
}
}
}