mirror of
https://github.com/rsms/inter.git
synced 2024-11-17 07:47:33 +01:00
web: lab font file version
This commit is contained in:
parent
1cd1e1a148
commit
e8fd39993c
1 changed files with 8 additions and 8 deletions
|
@ -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(`}`)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue