fix(fonts): move fonts to public folder so that its served as static assets via cra & works in export (#2264)

This commit is contained in:
Aakansha Doshi 2020-10-22 02:20:57 +05:30 committed by GitHub
parent 6db5647048
commit 1034ec91b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 17 additions and 28 deletions

View file

@ -1,17 +1,3 @@
/* http://www.eaglefonts.com/fg-virgil-ttf-131249.htm */
@font-face {
font-family: "Virgil";
src: url("../fonts/FG_Virgil.woff2");
font-display: swap;
}
/* https://github.com/microsoft/cascadia-code */
@font-face {
font-family: "Cascadia";
src: url("../fonts/Cascadia.woff2");
font-display: swap;
}
.visually-hidden {
position: absolute !important;
height: 1px;

View file

@ -6,6 +6,7 @@ module.exports = {
mode: "production",
entry: {
"excalidraw.min": "./index.tsx",
"fonts.min": "../../public/fonts.css",
},
output: {
path: path.resolve(__dirname, "dist"),

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.