index.js 590 B

123456789101112
  1. import e from "node:fs";
  2. import s from "node:path";
  3. const r = process.env.NODE_ENV === "production", t = r ? "." : "../dist", n = e.readFileSync(s.resolve(__dirname, `${t}/hackmd-styles.js`)), o = e.readFileSync(s.resolve(__dirname, `${t}/hackmd-agent.js`)), i = e.readFileSync(s.resolve(__dirname, `${t}/style.css`)), c = {
  4. stylesJS: n.toString(),
  5. agentJS: o.toString(),
  6. stylesCSS: i.toString().replace(/(\r\n|\n|\r)/gm, "")
  7. // https://stackoverflow.com/questions/10805125/how-to-remove-all-line-breaks-from-a-string
  8. };
  9. export {
  10. c as default
  11. };
  12. //# sourceMappingURL=index.js.map