mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Append timestamp to CSS import in storybook
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -48,6 +48,8 @@
|
|||||||
/deploy
|
/deploy
|
||||||
/docker/images/bundle*
|
/docker/images/bundle*
|
||||||
/exporter/target
|
/exporter/target
|
||||||
|
/frontend/.storybook/preview-body.html
|
||||||
|
/frontend/.storybook/preview-head.html
|
||||||
/frontend/cypress/fixtures/validuser.json
|
/frontend/cypress/fixtures/validuser.json
|
||||||
/frontend/cypress/videos/*/
|
/frontend/cypress/videos/*/
|
||||||
/frontend/cypress/videos/*/
|
/frontend/cypress/videos/*/
|
||||||
@@ -68,7 +70,6 @@
|
|||||||
/web
|
/web
|
||||||
clj-profiler/
|
clj-profiler/
|
||||||
node_modules
|
node_modules
|
||||||
frontend/.storybook/preview-body.html
|
|
||||||
/test-results/
|
/test-results/
|
||||||
/playwright-report/
|
/playwright-report/
|
||||||
/blob-report/
|
/blob-report/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<link href="/css/ds.css" rel="stylesheet" type="text/css" />
|
<link href="/css/ds.css?ts={{& ts}}" rel="stylesheet" type="text/css" />
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
@@ -7,4 +7,4 @@
|
|||||||
#storybook-root {
|
#storybook-root {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -404,6 +404,15 @@ async function generateTemplates() {
|
|||||||
);
|
);
|
||||||
await fs.writeFile("./.storybook/preview-body.html", content);
|
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", {
|
content = await renderTemplate("resources/templates/render.mustache", {
|
||||||
manifest: manifest,
|
manifest: manifest,
|
||||||
translations: JSON.stringify(translations),
|
translations: JSON.stringify(translations),
|
||||||
|
|||||||
Reference in New Issue
Block a user