Initial commit
This commit is contained in:
11
wechat-mini-program/node_modules/mp-html/plugins/audio/build.js
generated
vendored
Normal file
11
wechat-mini-program/node_modules/mp-html/plugins/audio/build.js
generated
vendored
Normal file
@@ -0,0 +1,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]+?>/, ''))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user