初始化
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user