You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
355 B

5 years ago
  1. var fs = require("fs");
  2. var retemp = fs.readFileSync("./replace.tp")
  3. var retemp2 = fs.readFileSync("./replace2.tp")
  4. var content = fs.readFileSync("./dist/index.js")
  5. var test = content.toString().indexOf(retemp)
  6. console.log(test)
  7. content = content.toString().replace(retemp, `NodeList`).replace(retemp2, ``)
  8. fs.writeFileSync("./dist/index.js", content)