Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Don't load anything from the Internet #228

Closed

Description

@PVince81

We should bundle everything:

  • material icons, etc

Currently it connects to remote sites like google for downloading these.

@felixheidecke

Activity

  1. DeepDiver1975 commented on Sep 25, 2018

    @DeepDiver1975
    Contributor

    scheduled for 0.2.0

  2. tempelgogo commented on Oct 17, 2018

    @tempelgogo
    Contributor
    1. We could integrate the font files as static assets, with which either UiKit or Vuetify will seamless work.

    2. 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...

    3. 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

  3. DeepDiver1975 commented on Oct 17, 2018

    @DeepDiver1975
    Contributor

    @tempelgogo we need a solution which fits into theming as well. Themes can change icons ....

    Which one of the proposed will work?

  4. tempelgogo commented on Oct 17, 2018

    @tempelgogo
    Contributor

    @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.

  5. DeepDiver1975 commented on Oct 17, 2018

    @DeepDiver1975
    Contributor

    Easiest and best to maintain approach is something webpack based I assume. @tempelgogo please choose and submit a pull request. THX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions