Skip to content

Commit 0c67b39

Browse files
committed
Enable fontawesome optimization in build
1 parent 4b720e1 commit 0c67b39

File tree

6 files changed

+3047
-13
lines changed

6 files changed

+3047
-13
lines changed

_config.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,13 @@ builds:
5959
integrity: sha384-i14qZ6FYmJXQABb+YG5tH4NXjKOLznxsr5jFsNiJNRcQ77978BoUif762EQyydgt
6060

6161
font-face:
62-
fontawesome:
63-
regular:
64-
- https://cdn.jsdelivr.net/fontawesome/4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0
65-
- https://cdn.jsdelivr.net/fontawesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0
66-
6762
sourcecodepro:
6863
light:
6964
- https://fonts.gstatic.com/s/sourcecodepro/v6/leqv3v-yTsJNC7nFznSMqSP2LEk6lMzYsRqr3dHFImA.woff2
7065
semi-bold:
7166
- https://fonts.gstatic.com/s/sourcecodepro/v6/leqv3v-yTsJNC7nFznSMqczFoXZ-Kj537nB_-9jJhlA.woff2
7267

7368
vendor:
74-
css:
75-
- href: https://cdn.jsdelivr.net/fontawesome/4.7.0/css/font-awesome.min.css
76-
integrity: sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN
77-
7869
js:
7970
- href: https://embed.runkit.com/
8071
async: true
@@ -92,6 +83,7 @@ google_analytics:
9283

9384
exclude:
9485
- node_modules
86+
- tools
9587
- Gemfile
9688
- gulpfile.js
9789
- icons.js

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"node": ">=7.0.0"
77
},
88
"scripts": {
9-
"build": "npm run build:jekyll && npm run build:site",
9+
"build": "npm run build:jekyll && npm run build:fonts && npm run build:site",
1010
"build:config": "gulp build-config --release",
1111
"build:jekyll": "cross-env JEKYLL_ENV=production PAGES_GITHUB_HOSTNAME=lodash.com bundle exec jekyll build",
1212
"build:fonts": "node tools/subset-fontawesome.js >> _site/assets/css/main.css",

0 commit comments

Comments
 (0)