Skip to content

Commit b4de446

Browse files
committed
Merge remote-tracking branch 'origin/nicpottier/fix-assets'
2 parents f7084c6 + a21d53d commit b4de446

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

assets/adt/fonts.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
@font-face {
22
font-family: 'Merriweather';
3-
src: url('./fonts/Merriweather-VariableFont_opsz,wdth,wght.woff2') format('woff2');
3+
src: url('./fonts/Merriweather-VariableFont.woff2') format('woff2');
44
font-weight: 300 800;
55
font-style: normal;
66
font-display: swap;
77
}
88

99
@font-face {
1010
font-family: 'Merriweather';
11-
src: url('./fonts/Merriweather-Italic-VariableFont_opsz,wdth,wght.woff2') format('woff2');
11+
src: url('./fonts/Merriweather-Italic-VariableFont.woff2') format('woff2');
1212
font-weight: 300 800;
1313
font-style: italic;
1414
font-display: swap;

assets/adt/fonts/Merriweather-Italic-VariableFont_opsz,wdth,wght.woff2 renamed to assets/adt/fonts/Merriweather-Italic-VariableFont.woff2

File renamed without changes.

assets/adt/fonts/Merriweather-VariableFont_opsz,wdth,wght.woff2 renamed to assets/adt/fonts/Merriweather-VariableFont.woff2

File renamed without changes.

packages/pipeline/src/__tests__/package-web.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ describe("renderPageHtml", () => {
5252
})
5353

5454
expect(html).toContain(
55-
'<link rel="preload" href="./assets/fonts/Merriweather-VariableFont_opsz,wdth,wght.woff2" as="font" type="font/woff2" crossorigin>',
55+
'<link rel="preload" href="./assets/fonts/Merriweather-VariableFont.woff2" as="font" type="font/woff2" crossorigin>',
5656
)
5757
expect(html).toContain(
58-
'<link rel="preload" href="./assets/fonts/Merriweather-Italic-VariableFont_opsz,wdth,wght.woff2" as="font" type="font/woff2" crossorigin>',
58+
'<link rel="preload" href="./assets/fonts/Merriweather-Italic-VariableFont.woff2" as="font" type="font/woff2" crossorigin>',
5959
)
6060

6161
// Preloads should appear before the fonts.css stylesheet

packages/pipeline/src/package-web.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ export function renderPageHtml(opts: RenderPageOptions): string {
458458
<title>${escapeHtml(opts.pageTitle)}</title>
459459
<meta name="title-id" content="${escapeAttr(opts.sectionId)}" />
460460
<meta name="page-section-id" content="${opts.pageIndex}" />
461-
<link rel="preload" href="./assets/fonts/Merriweather-VariableFont_opsz,wdth,wght.woff2" as="font" type="font/woff2" crossorigin>
462-
<link rel="preload" href="./assets/fonts/Merriweather-Italic-VariableFont_opsz,wdth,wght.woff2" as="font" type="font/woff2" crossorigin>
461+
<link rel="preload" href="./assets/fonts/Merriweather-VariableFont.woff2" as="font" type="font/woff2" crossorigin>
462+
<link rel="preload" href="./assets/fonts/Merriweather-Italic-VariableFont.woff2" as="font" type="font/woff2" crossorigin>
463463
<link href="./content/tailwind_output.css" rel="stylesheet">
464464
<link href="./assets/libs/fontawesome/css/all.min.css" rel="stylesheet">
465465
<link href="./assets/fonts.css" rel="stylesheet">

0 commit comments

Comments
 (0)