diff options
author | Rasmus Andersson <rasmus@notion.se> | 2020-08-20 21:07:25 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2020-08-20 21:07:25 +0300 |
commit | e8fd39993cd3e3bfa3d60a292d65fa84b33a33a3 (patch) | |
tree | ef92b315411082a8de49b57196d6aff5ff51ee52 | |
parent | 1cd1e1a148e150a5e1f65786bfa9dae0c8b5b50a (diff) | |
download | inter-e8fd39993cd3e3bfa3d60a292d65fa84b33a33a3.tar.xz |
web: lab font file version
-rw-r--r-- | docs/lab/font-files.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/lab/font-files.js b/docs/lab/font-files.js index 30c4429e5..f19297a31 100644 --- a/docs/lab/font-files.js +++ b/docs/lab/font-files.js @@ -59,11 +59,11 @@ var fontFamilyName, w(` font-display: block;`) w(` src:`) if (includeLabLocalFiles) { - w(` url("fonts/${filepath}/${filename}.woff2") format("woff2"),`) - w(` url("fonts/${filepath}/${filename}.woff") format("woff"),`) + w(` url("fonts/${filepath}/${filename}.woff2?v=${fontVersion}") format("woff2"),`) + w(` url("fonts/${filepath}/${filename}.woff?v=${fontVersion}") format("woff"),`) } - w(` url("../font-files/${filename}.woff2") format("woff2"),`) - w(` url("../font-files/${filename}.woff") format("woff2");`) + w(` url("../font-files/${filename}.woff2?v=${fontVersion}") format("woff2"),`) + w(` url("../font-files/${filename}.woff?v=${fontVersion}") format("woff2");`) w(`}`) } @@ -93,9 +93,9 @@ var fontFamilyName, font-display: block; src:`) if (includeLabLocalFiles) { - w(` url('fonts/var/${family}.var.woff2') format("woff2-variations"),`) + w(` url('fonts/var/${family}.var.woff2?v=${fontVersion}') format("woff2"),`) } - w(` url('../font-files/${family}.var.woff2') format("woff2-variations");`) + w(` url('../font-files/${family}.var.woff2?v=${fontVersion}') format("woff2");`) w(`}`) w(`@font-face { @@ -104,9 +104,9 @@ var fontFamilyName, font-display: block; src:`) if (includeLabLocalFiles) { - w(` url('fonts/var/${family}.var.woff2') format("woff2-variations"),`) + w(` url('fonts/var/${family}.var.woff2?v=${fontVersion}') format("woff2"),`) } - w(` url('../font-files/${family}.var.woff2') format("woff2-variations");`) + w(` url('../font-files/${family}.var.woff2?v=${fontVersion}') format("woff2");`) w(`}`) } |