var fs = require("fs"); var retemp = fs.readFileSync("./replace.tp") var retemp2 = fs.readFileSync("./replace2.tp") var content = fs.readFileSync("./dist/index.js") var test = content.toString().indexOf(retemp) console.log(test) content = content.toString().replace(retemp, `NodeList`).replace(retemp2, ``) fs.writeFileSync("./dist/index.js", content)