From 5eeca5a41bd6c9dbec62184a8ba605121a46ee8a Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 30 Aug 2017 18:29:09 +0430 Subject: [PATCH] add font to global-css example --- examples/global-css/assets/roboto.woff2 | Bin 0 -> 10560 bytes examples/global-css/css/main.css | 9 +++++++++ examples/global-css/nuxt.config.js | 9 ++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 examples/global-css/assets/roboto.woff2 diff --git a/examples/global-css/assets/roboto.woff2 b/examples/global-css/assets/roboto.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..555f98b12050685859ec09a1cfac15cf528fd2ef GIT binary patch literal 10560 zcmV-GDZkctPew8T0RR9104YEK4gdfE08iim04V1G0RR9100000000000000000000 z0000QfleEeLL4jxU;u{<5ey3R2;3G6gIWLqHUcCAhcE;n1%e6(ARC=QMF(QoH~=7g zJA^38#3+xVbWnz8{~r?Ah`Yj;p3o9HL(~xJSl@9%w+xiC>wHwTUE0%5rqdR;^PN!M z@rKiFcp4}2aZxV(6av|zz&$=#x+669NiGl1=k;}7<)&KJ7TgmYK-#+cPY(FG{k@Gb zvIL3JCWMbV3oIm3F$l@gIa&my9I+AGB!wZ!pf^M|0TBbFL(mV389dLs7v{~+dkLr| zEXE=^SQK`xwzjU)ETbybwm&eo1#0(WIE#5O(6fjxfd8M|>U{&l%6kK|{D^32MP+?P zR!)5Fn=HHr?z-i!jrA$Yq$pE~!4gx7+FcV+2}+9DuirbIKzCB3rZ8jbIqs4NvNft8 zgl+fzyO6NP|F83Pz1Mm=U#c7emsMg9TWMN)x-9Qq$|w4{`I)yUrhVVSovT8IAd;?qQSm#=phBP$udu zIvD~$uB~M3`rxZ*`;42bH+EElF{u@N)l(Jta~YeD3~fYglnuuJr%i$)1i%AOA zFk}K@#tg#BMF<<0q1myAaN!DphllXy0}&_$B3uMSGy+6|1c+p*5Sg+dh=>q*@*v2_ z5JgHLsHhNk+<~Z44N>bp1j8c4iWP`g)*)Wogg~Hx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PE**pldbaR9gz@Dp*kyRZLU;+_Pst$~wCOnP*bue0 zKTO@x!C}!;Xk!M#(NrQ_4W}DexUQabJPiSYdDMJ)alIVfUkJRAPNs~UagMo*gMTn} ORSVkc%!&m!0001EDr!3b literal 0 HcmV?d00001 diff --git a/examples/global-css/css/main.css b/examples/global-css/css/main.css index 762c321cb7..debffff97e 100644 --- a/examples/global-css/css/main.css +++ b/examples/global-css/css/main.css @@ -1,3 +1,11 @@ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: local('Roboto'), local('Roboto-Regular'), url(../assets/roboto.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} + body { background: #eee; text-align: center; @@ -7,6 +15,7 @@ body { position: absolute; top: 0; left: 0; + font-family: 'Roboto'; } .content { margin-top: 100px; diff --git a/examples/global-css/nuxt.config.js b/examples/global-css/nuxt.config.js index f916e5a053..3dc2839759 100644 --- a/examples/global-css/nuxt.config.js +++ b/examples/global-css/nuxt.config.js @@ -9,5 +9,12 @@ module.exports = { css: [ 'bulma/css/bulma.css', '~/css/main.css' - ] + ], + render: { + bundleRenderer: { + shouldPreload: (file, type) => { + return ['script', 'style', 'font'].includes(type) + } + } + } }