We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba1e678 commit d06cfe3Copy full SHA for d06cfe3
packages/playground/start.js
@@ -69,11 +69,12 @@ const watcher = watch([
69
async generateBundle(_, bundle) {
70
const result = bundle['entry-server.js'];
71
const mod = (0, eval)(result.code);
72
- const { html } = mod.render();
+ const { html, head } = mod.render();
73
74
writeFileSync(
75
'dist/index.html',
76
readFileSync('src/template.html', 'utf-8')
77
+ .replace('<!--app-head-->', head)
78
.replace('<!--app-html-->', html)
79
.replace('<!--app-title-->', svelte.VERSION)
80
);
0 commit comments