You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
We could integrate the font files as static assets, with which either UiKit or Vuetify will seamless work.
The optional alternative is to use a webpack extension like google-fonts-webpack-plugin, which automatically downloads the newest font version on each build & includes it into our bundle.
I have used it before & it can be a nice way to integrate google fonts API into the automatic npm build process, but it's a little narrow-minded and may blow your pipeline if google font is not available.
Because our pipeline server is always online, this should make no problems at all...
@tempelgogo we need a solution which fits into theming as well. Themes can change icons ....
Which one of the proposed will work?
All three proposals will include the font files & related stylesheets as static assets, while webpack will bundle them on phoenix build to a big, tree-shaked & compressed stylesheet.
The only option for theming, without rebundling the whole phoenix, is to use a separate theme-related stylesheet, which includes additional font files & extends the base bundle.
All three proposals can offer this, as they are only ways to manage the material icon package version.
The webpack plugin is able to manage all Webfonts offered from google, but this is only relevant if we are interested in some more google fonts.
In light of the fact that we only need material-icons and PR #127 is already prepared, I fully agree with @felixheidecke to use the npm-maintained version of the material icons.
Activity
michaelstingl commentedon Sep 25, 2018
DeepDiver1975 commentedon Sep 25, 2018
scheduled for 0.2.0
tempelgogo commentedon Oct 17, 2018
We could integrate the font files as static assets, with which either UiKit or Vuetify will seamless work.
The optional alternative is to use a webpack extension like google-fonts-webpack-plugin, which automatically downloads the newest font version on each build & includes it into our bundle.
I have used it before & it can be a nice way to integrate google fonts API into the automatic npm build process, but it's a little narrow-minded and may blow your pipeline if google font is not available.
Because our pipeline server is always online, this should make no problems at all...
If it's only about the material icon's, we could use the material-icons lib from npm, as prepared by @felixheidecke inside Material icons node dependency #127
DeepDiver1975 commentedon Oct 17, 2018
@tempelgogo we need a solution which fits into theming as well. Themes can change icons ....
Which one of the proposed will work?
tempelgogo commentedon Oct 17, 2018
All three proposals will include the font files & related stylesheets as static assets, while webpack will bundle them on phoenix build to a big, tree-shaked & compressed stylesheet.
The only option for theming, without rebundling the whole phoenix, is to use a separate theme-related stylesheet, which includes additional font files & extends the base bundle.
All three proposals can offer this, as they are only ways to manage the material icon package version.
The webpack plugin is able to manage all Webfonts offered from google, but this is only relevant if we are interested in some more google fonts.
In light of the fact that we only need material-icons and PR #127 is already prepared, I fully agree with @felixheidecke to use the npm-maintained version of the material icons.
DeepDiver1975 commentedon Oct 17, 2018
Easiest and best to maintain approach is something webpack based I assume. @tempelgogo please choose and submit a pull request. THX