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.
jfa-go/site/inject.js

6 lines
225 B

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));