site: allow html injection

pull/189/head
Harvey Tindall 3 years ago
parent 51b59ae103
commit 7ff492df6c
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -9,6 +9,7 @@ all:
cd out && npx uncss index.html --stylesheets remixicon.css > _remixicon.css; cd ..
mv out/_remixicon.css out/remixicon.css
cp ../static/* out/
node inject.js
debug:
-mkdir -p out

@ -0,0 +1,5 @@
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));
Loading…
Cancel
Save