Answer the question
In order to leave comments, you need to log in
How to correctly include fonts in a Vue application (quotes are removed when compiling scss)?
Including fonts in a Vue app
@font-face {
font-family: "Source Sans Pro";
font-weight: 400;
font-style: normal;
src: url('[email protected]/assets/fonts/xxx.eot');
src: url('[email protected]/assets/fonts/xxx.eot?#iefix') format("embedded-opentype"),
url('[email protected]/assets/fonts/xxx.woff') format("woff"),
url("[email protected]/assets/fonts/xxx.ttf") format("truetype"),
url("[email protected]/assets/fonts/xxx.svg#Source Sans Pro") format("svg");
@font-face {
font-family: "Source Sans Pro";
font-weight: 400;
font-style: normal;
src: url(/fonts/xxx.012556a5.eot);
src: url(/fonts/xxx.012556a5.eot?#iefix) format("embedded-opentype"),
url(/fonts/xxx.012556a5.woff) format("woff"),
url(/fonts/xxx.012556a5.ttf) format("truetype"),
url(/fonts/xxx.012556a5.svg#Source Sans Pro) format("svg");
Answer the question
In order to leave comments, you need to log in
Here is a snippet from my code:
@font-face {
font-family: "Morganite";
font-weight: 800;
src: url('[email protected]/assets/fonts/Morganite-Bold.woff2') format('woff2'),
url('[email protected]/assets/fonts/Morganite-Bold.woff') format('woff');
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question