Append timestamp to CSS import in storybook

This commit is contained in:
Belén Albeza 2024-08-05 17:14:19 +02:00
parent 0f16f65d30
commit 457da6f23e
3 changed files with 13 additions and 3 deletions

View file

@ -404,6 +404,15 @@ async function generateTemplates() {
);
await fs.writeFile("./.storybook/preview-body.html", content);
content = await renderTemplate(
"resources/templates/preview-head.mustache",
{
manifest: manifest,
},
partials,
);
await fs.writeFile("./.storybook/preview-head.html", content);
content = await renderTemplate("resources/templates/render.mustache", {
manifest: manifest,
translations: JSON.stringify(translations),