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.
12 lines
355 B
12 lines
355 B
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)
|