Skip to content

Commit

Permalink
use the woff2 plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
patchlog committed Sep 10, 2019
1 parent 72da8d4 commit f878f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function run(src, dest) {
.use(Fontmin.ttf2eot(pluginOpts))
.use(Fontmin.ttf2svg(pluginOpts))
.use(Fontmin.ttf2woff(pluginOpts))
.use(Fontmin.ttf2woff2(pluginOpts))
.use(Fontmin.css(pluginOpts));

if (process.stdout.isTTY) {
Expand Down
1 change: 1 addition & 0 deletions lib/font-face.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
src: url("<%=fontPath%><%=fontFile%>.eot"); /* IE9 */
src: <%if (local) {%>local("<%=local%>"), <%}%>url("<%=fontPath%><%=fontFile%>.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */<% if (base64) { %>
url(<%=base64%>) format("truetype"), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */<% } else { %>
url("<%=fontPath%><%=fontFile%>.woff2") format("woff2"), /* chrome 36+, firefox 39+,iOS 10+, Android 67+ */
url("<%=fontPath%><%=fontFile%>.woff") format("woff"), /* chrome, firefox */
url("<%=fontPath%><%=fontFile%>.ttf") format("truetype"), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */<% } %>
url("<%=fontPath%><%=fontFile%>.svg#<%=fontFamily%>") format("svg"); /* iOS 4.1- */
Expand Down

0 comments on commit f878f00

Please sign in to comment.