Skip to content

Commit 8ea1e37

Browse files
committed
minor #605 Load the web fonts from local asset files (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Load the web fonts from local asset files I found the solution here: thomaspark/bootswatch#55 (comment) It's not a beautiful solution, but it solves our problem. Commits ------- 5c754f6 Load the web fonts from local asset files
2 parents cfa931a + 5c754f6 commit 8ea1e37

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

assets/scss/app.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// setting the value of this variable to an empty data URL is the only working solution
2+
// to load the Bootswatch web fonts locally and avoid loading them from Google servers
3+
// see https://github.com/thomaspark/bootswatch/issues/55#issuecomment-298093182
4+
$web-font-path: 'data:text/css;base64,';
5+
16
@import "~bootswatch/flatly/variables";
27
@import "~bootstrap-sass/assets/stylesheets/bootstrap";
38
@import "~bootswatch/flatly/bootswatch";

web/build/css/app.css

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)