1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-10-31 23:40:11 +00:00
jfa-go/site/inject.js

6 lines
225 B
JavaScript
Raw Normal View History

2022-01-02 22:05:26 +00:00
let fs = require('fs');
let content = fs.readFileSync("out/index.html", 'utf8');
fs.writeFileSync("out/index.html", content.replace('<script src="main.js"></script>', '<script src="main.js"></script>'+process.env.INJECT));