Closed Clago closed 1 year ago
自定义plugin
const fs = require("fs-extra");
module.exports = ({ onHook }) => {
onHook('after.build.compile',(stats) => {
try {
fs.copySync("./build/web","./build")
console.log("copy success")
}catch (e) {
console.log(e)
}
})
}
代码需要上传到irs平台编译,现在的默认目录是build,有参数可以修改吗