Skip to content

Commit

Permalink
optimize bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
ivictbor committed Aug 30, 2021
1 parent 039b877 commit 40b06ef
Show file tree
Hide file tree
Showing 11 changed files with 180 additions and 196 deletions.
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults
86 changes: 1 addition & 85 deletions css/checkers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions css/icons/ptroiconfont.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
@font-face {
font-family: "ptroiconfont";
src: url("ptroiconfont.eot?369c1b36c410d0842646d6396ce5c2b6?#iefix") format("embedded-opentype"),
url("ptroiconfont.woff?369c1b36c410d0842646d6396ce5c2b6") format("woff"),
url("ptroiconfont.ttf?369c1b36c410d0842646d6396ce5c2b6") format("truetype"),
url("ptroiconfont.svg?369c1b36c410d0842646d6396ce5c2b6#ptroiconfont") format("svg");
src: url("ptroiconfont.woff?6445e1fd933a6c63917aabe728c217e3") format("woff"),
url("ptroiconfont.ttf?6445e1fd933a6c63917aabe728c217e3") format("truetype");
font-weight: normal;
font-style: normal;
}
Expand Down
Binary file removed css/icons/ptroiconfont.eot
Binary file not shown.
6 changes: 2 additions & 4 deletions css/icons/ptroiconfont.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@

@font-face {
font-family: "ptroiconfont";
src: url("ptroiconfont.eot?cbf9b7762e3478c871fcf76390d09bd8?#iefix") format("embedded-opentype"),
url("ptroiconfont.woff?cbf9b7762e3478c871fcf76390d09bd8") format("woff"),
url("ptroiconfont.ttf?cbf9b7762e3478c871fcf76390d09bd8") format("truetype"),
url("ptroiconfont.svg?cbf9b7762e3478c871fcf76390d09bd8#ptroiconfont") format("svg");
src: url("ptroiconfont.woff?76bf7f5bd43dddfe0c697459dfb66220") format("woff"),
url("ptroiconfont.ttf?76bf7f5bd43dddfe0c697459dfb66220") format("truetype");
font-weight: normal;
font-style: normal;
}
Expand Down
Binary file modified css/icons/ptroiconfont.ttf
Binary file not shown.
Binary file modified css/icons/ptroiconfont.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion generate_font.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fs.readdir('res/font', function(err, items) {
classPrefix: 'ptro-icon-',
baseSelector: '.ptro-icon'
},
types: ['svg', 'ttf', 'woff', 'eot']
types: ['ttf', 'woff']
}, function (error) {
if (error) {
console.log('Fail!', error);
Expand Down
Loading

0 comments on commit 40b06ef

Please sign in to comment.