Skip to content

Commit

Permalink
reproduction
Browse files Browse the repository at this point in the history
  • Loading branch information
amk221 committed Jan 24, 2024
1 parent 5d62040 commit 6b33286
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
20 changes: 14 additions & 6 deletions app/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta charset="utf-8" />
<title>Example2</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

{{content-for "head"}}

<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/example2.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css" />
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/example2.css" />

<link
rel="preload"
href="{{rootURL}}assets/fonts/InterVariable.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>

{{content-for "head-footer"}}
</head>
Expand Down
2 changes: 1 addition & 1 deletion app/styles/app.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@font-face {
font-family: InterVariable;
src: url("assets/InterVariable.woff2") format("woff2");
src: url("/assets/fonts/InterVariable.woff2") format("woff2");
font-weight: 1 999;
font-style: normal;
font-display: swap;
Expand Down
8 changes: 7 additions & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ const EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function (defaults) {
const app = new EmberApp(defaults, {
// Add options here
fingerprint: {
enabled: true,
extensions: ['css', 'js', 'woff2'],

// Toggle this to show xyz is used on the woff2 link tag in index.html
// prepend: `xyz/`,
},
});

return app.toTree();
Expand Down
File renamed without changes.

0 comments on commit 6b33286

Please sign in to comment.