dikaio
12/16/2017 - 6:49 PM

location of fonts e.g. /assets/static/fonts/carnas-lig-webfont.eot etc.

location of fonts e.g. /assets/static/fonts/carnas-lig-webfont.eot etc.


plug Plug.Static,
  at: "/", from: :app, gzip: false,
  only: ~w(css fonts images js favicon.ico robots.txt)
@font-face {
    font-family: 'carnaslight';
    src: url('../fonts/carnas-lig-webfont.eot');
    src: url('../fonts/carnas-lig-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/carnas-lig-webfont.woff2') format('woff2'),
         url('../fonts/carnas-lig-webfont.woff') format('woff'),
         url('../fonts/carnas-lig-webfont.ttf') format('truetype'),
         url('../fonts/carnas-lig-webfont.svg#carnaslight') format('svg');
    font-weight: normal;
    font-style: normal;
}