路泰科技体检小程序UI设计新版本
1
wwl
5 天以前 a6cdbcfe28fcc40ebb4919f57d60fb20122e8e57
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module.exports = {
  import: 'katex.css',
  handler (file) {
    if (file.isBuffer()) {
      let content = file.contents.toString()
      if (file.basename === 'node.wxml') {
        content = content.replace(/(n.?)\.name==='a'\|\|/g, "$1.name==='a'||$1.l||")
      } else if (file.basename === 'node.vue') {
        content = content.replace(/!handler.isInline\((.*?)\)/, '(n.l||!handler.isInline($1))')
      }
      file.contents = Buffer.from(content)
    }
  }
}