sdin
Version:
JavaScript package builder.
2 lines • 857 B
JavaScript
import{relativePosix as e}from"../../utils/path";function t(t){return'\n<html>\n <head>\n <meta charset="UTF-8"/>\n '.concat(t.getMetaHtmlString(),"\n <title>").concat(t.getHtmlTitle(),"</title>\n <script>window.datas=").concat(JSON.stringify(t.getHtmlDatas()),"<\/script>\n ").concat(t.getLinkHtmlString(),"\n ").concat(t.getScriptHtmlString(),"\n ").concat(t.getStyleHtmlString(),'\n </head>\n <body>\n <div id="app">\n ').concat(t.getSkeleton(),"\n </div>\n </body>\n</html>")}function n(t,n){return"import React from 'react'\nimport { createRoot } from 'react-dom/client'\nimport Entry from ".concat(JSON.stringify(e(n,t.index)),"\n\nconst root = createRoot(document.getElementById('app'))\nroot.render(<Entry />)")}export{t as getHtmlString,n as getScriptString};
//# sourceMappingURL=template.js.map