I hit a small snag trying to build my Phoenix app with Webpack, namely fonts are not included by the app.
-
I have clean Webpack build - copies whole bunch of fonts, one JS file with embedded CSS. After the build all the font files are are placed in /web/priv/static/fonts/ directory and my JS file ends up in /web/priv/static/js/
-
During the build only the fonts which my CSS file is actually referencing are copied/extracted (which is what I’d expect),
-
So far all the styles from my CSS file work as expected, however I’m getting errors when trying to use styles which reference these fonts. I looked in Chrome and I don’t see fonts directory in the tree
-
Fonts are present in /web/priv/static/fonts - they should be served and they are not. Of course my endpoint is configured to serve fonts.