@mel000000/weweb-dynamic-metadata 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -34,7 +34,8 @@ export async function injectScriptInTemplate(templatePath, page) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
// Insert script before </head>
|
|
37
|
-
|
|
37
|
+
const script = await metadata_injector_script(page);
|
|
38
|
+
template = template.replace('</head>', script + '\n</head>');
|
|
38
39
|
|
|
39
40
|
// Write back
|
|
40
41
|
await fs.writeFile(templatePath, template, 'utf-8');
|