Commit b81a933ba24dfa34c5367dcaba61951c81219288

Authored by Vladyslav_Prykhodko
1 parent 6027958c

UI: Added preload Material Icons font

... ... @@ -59,6 +59,11 @@
59 59 "glob": "marker-shadow.png",
60 60 "input": "node_modules/leaflet/dist/images/",
61 61 "output": "/"
  62 + },
  63 + {
  64 + "glob": "**/*",
  65 + "input": "node_modules/material-design-icons/iconfont/",
  66 + "output": "/fonts"
62 67 }
63 68 ],
64 69 "styles": [
... ...
... ... @@ -24,6 +24,8 @@
24 24
25 25 <meta name="viewport" content="width=device-width, initial-scale=1">
26 26 <link rel="icon" type="image/x-icon" href="thingsboard.ico">
  27 + <link rel="preload" href="fonts/MaterialIcons-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
  28 + <link rel="stylesheet" href="fonts/material-icons.css" />
27 29 <style type="text/css">
28 30
29 31 body, html {
... ...
... ... @@ -15,7 +15,6 @@
15 15 */
16 16 /* You can add global styles to this file, and also import other style files */
17 17
18   -@import '~material-design-icons/iconfont/material-icons.css';
19 18 @import '~typeface-roboto/index.css';
20 19 @import '~font-awesome/css/font-awesome.min.css';
21 20 @import 'theme.scss';
... ...