Files
beauty-miniapp-uni/vue.config.js
T
2026-06-29 10:54:33 +08:00

19 lines
405 B
JavaScript

const patchMpWeixinVendor = require('./scripts/patch-mp-weixin-vendor')
class PatchMpWeixinVendorPlugin {
apply(compiler) {
compiler.hooks.afterEmit.tap('PatchMpWeixinVendorPlugin', () => {
try {
patchMpWeixinVendor()
} catch (e) {}
})
}
}
module.exports = {
chainWebpack: (config) => {
config.plugin('patch-mp-weixin-vendor').use(PatchMpWeixinVendorPlugin)
}
}